danielnarey/elm-toolkit/6.1.1

NOTE: this package is not compatible with Elm 0.19.1

Toolkit.Tuple3

Helpers for working with 3-tuples

Getting values

first : ( a, b, c ) -> a

Return the first value of a 3-tuple

second : ( a, b, c ) -> b

Return the second value of a 3-tuple

third : ( a, b, c ) -> c

Return the third value of a 3-tuple

Mapping functions

map : (a -> b) -> ( a, a, a ) -> ( b, b, b )

Apply a function to all 3 values in a 3-tuple and return the results as a 3-tuple