Documentation
unzip :: [(a, b)] -> ([a], [b]) #
unzip transforms a list of pairs into a list of first components
and a list of second components.
unzip3 :: [(a, b, c)] -> ([a], [b], [c]) #
The unzip3 function takes a list of triples and returns three
lists, analogous to unzip.
zip :: [a] -> [b] -> [(a, b)] #
zip takes two lists and returns a list of corresponding pairs.
If one input list is short, excess elements of the longer list are
discarded.
zip is right-lazy:
zip [] _|_ = []
zip3 :: [a] -> [b] -> [c] -> [(a, b, c)] #
zip3 takes three lists and returns a list of triples, analogous to
zip.