unzip package:rio
O(n) unzip transforms a list of pairs of bytes into a
pair of ByteStrings. Note that this performs two
pack
operations.
unzip transforms a list of pairs into a list of first
components and a list of second components.
The
unzip function is the inverse of the
zip function.
O(min(m,n)) Unzip a vector of pairs.
O(min(m,n)) Unzip a vector of pairs.
The
unzip3 function takes a list of triples and returns three
lists, analogous to
unzip.
The
unzip4 function takes a list of quadruples and returns four
lists, analogous to
unzip.
The
unzip5 function takes a list of five-tuples and returns
five lists, analogous to
unzip.
unzip6 :: [(a, b, c, d, e, f)] -> ([a], [b], [c], [d], [e], [f]) The
unzip6 function takes a list of six-tuples and returns six
lists, analogous to
unzip.
unzip7 :: [(a, b, c, d, e, f, g)] -> ([a], [b], [c], [d], [e], [f], [g]) The
unzip7 function takes a list of seven-tuples and returns
seven lists, analogous to
unzip.
unzip4 :: (Vector v a, Vector v b, Vector v c, Vector v d, Vector v (a, b, c, d)) => v (a, b, c, d) -> (v a, v b, v c, v d) unzip5 :: (Vector v a, Vector v b, Vector v c, Vector v d, Vector v e, Vector v (a, b, c, d, e)) => v (a, b, c, d, e) -> (v a, v b, v c, v d, v e) unzip6 :: (Vector v a, Vector v b, Vector v c, Vector v d, Vector v e, Vector v f, Vector v (a, b, c, d, e, f)) => v (a, b, c, d, e, f) -> (v a, v b, v c, v d, v e, v f) unzip6 :: Vector (a, b, c, d, e, f) -> (Vector a, Vector b, Vector c, Vector d, Vector e, Vector f) unzip5 :: (Unbox a, Unbox b, Unbox c, Unbox d, Unbox e) => Vector (a, b, c, d, e) -> (Vector a, Vector b, Vector c, Vector d, Vector e) O(1) Unzip 5 vectors
unzip6 :: (Unbox a, Unbox b, Unbox c, Unbox d, Unbox e, Unbox f) => Vector (a, b, c, d, e, f) -> (Vector a, Vector b, Vector c, Vector d, Vector e, Vector f) O(1) Unzip 6 vectors