hask.Data.Tuple – The Data.Tuple¶
-
hask.Data.Tuple.fst(*args, **kwargs)¶ fst :: (a, b) -> aExtract the first component of a pair.
-
hask.Data.Tuple.snd(*args, **kwargs)¶ snd :: (a, b) -> bExtract the second component of a pair.
-
hask.Data.Tuple.curry(*args, **kwargs)¶ curry :: ((a, b) -> c) -> a -> b -> ccurry converts an uncurried function to a curried function.
-
hask.Data.Tuple.uncurry(*args, **kwargs)¶ uncurry :: (a -> b -> c) -> (a, b) -> cuncurry 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.