elm package cache
Packages
Reroutes
About
lamdera.com
Fresheyeball
/
elm-tuple-extra
/
3.0.0
NOTE: this package is not compatible with Elm 0.19.1
README
About
Versions
Source
Modules
Tuple4
Getters
first
:
( a, b, c, d ) -> a
second
:
( a, b, c, d ) -> b
third
:
( a, b, c, d ) -> c
fourth
:
( a, b, c, d ) -> d
tail
:
( a, b, c, d ) -> ( b, c, d )
init
:
( a, b, c, d ) -> ( a, b, c )
Maps
map
:
(d -> x) -> ( a, b, c, d ) -> ( a, b, c, x )
mapFirst
:
(a -> x) -> ( a, b, c, d ) -> ( x, b, c, d )
mapSecond
:
(b -> x) -> ( a, b, c, d ) -> ( a, x, c, d )
mapThird
:
(c -> x) -> ( a, b, c, d ) -> ( a, b, x, d )
mapFourth
:
(d -> x) -> ( a, b, c, d ) -> ( a, b, c, x )
mapEach
:
(a -> x)
-> (b -> x_)
-> (c -> x__)
-> (d -> x___)
-> ( a, b, c, d )
-> ( x, x_, x__, x___ )
mapAll
:
(a -> b) -> ( a, a, a, a ) -> ( b, b, b, b )
Swap
swirlr
:
( a, b, c ) -> ( b, c, a )
swirll
:
( a, b, c ) -> ( c, a, b )
Sorting
sort
:
( comparable, comparable, comparable, comparable )
-> ( comparable, comparable, comparable, comparable )
sortBy
:
(a -> comparable) -> ( a, a, a, a ) -> ( a, a, a, a )
sortWith
:
(a -> a ->
Order
) -> ( a, a, a, a ) -> ( a, a, a, a )
Transform
toList
:
( a, a, a, a ) ->
List
a
README
About
6 versions
Source
Modules
Tuple2
Tuple3
Tuple4