hask.Data.Tuple
– The Data.Tuple
¶
-
hask.Data.Tuple.
fst
(*args, **kwargs)¶ fst :: (a, b) -> a
Extract the first component of a pair.
-
hask.Data.Tuple.
snd
(*args, **kwargs)¶ snd :: (a, b) -> b
Extract the second component of a pair.
-
hask.Data.Tuple.
curry
(*args, **kwargs)¶ curry :: ((a, b) -> c) -> a -> b -> c
curry converts an uncurried function to a curried function.
-
hask.Data.Tuple.
uncurry
(*args, **kwargs)¶ uncurry :: (a -> b -> c) -> (a, b) -> c
uncurry converts a curried function to a function on pairs.
-
hask.Data.Tuple.
swap
(*args, **kwargs)¶ swap :: (a, b) -> (b, a)
Swap the components of a pair.