elm-tuple-extra
Convenience functions for working with tuples.
Tuple2
pairTo
,double
andswap
for creating and arranging tuplesuncurry
andapply
for using functions with values in a tuplemaybeMapFirst
andmaybeMapSecond
for lifting aMaybe
out of a tuplemapBothSame
for convenience to apply a function to a same-typed tuple
Tuple3
- Copies and extensions of all
Tuple
functions to work with 3-tuples (first
,second
,third
,mapFirst
,mapSecond
,mapThird
,mapAllThree
,mapAllThreeSame
) - Functions for creating 3-tuples (
join
,joinTo
,triple
,splitFirst
,splitSecond
) - Functions for rearranging values in 3-tuples (
reverse
,rotateLeft
,rotateRight
,swapFirst
,swapLast
) uncurry
andapply
for using functions with values in a 3-tuplemaybeMapFirst
,maybeMapSecond
andmaybeMapThird
for lifting aMaybe
out of a 3-tuple