unzip
Lib.unzip : ('a * 'b) list -> ('a list * 'b list)
Converts a list of pairs into a pair of lists.
unzip [(x1,y1),...,(xn,yn)] returns ([x1,...,xn],[y1,...,yn]).
Failure
Never fails.
Comments
Identical to Lib.split.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help