zip package:bytestring

O(n) zip takes two ByteStrings and returns a list of corresponding pairs of bytes. If one input ByteString is short, excess elements of the longer ByteString are discarded. This is equivalent to a pair of unpack operations.
O(n) zip takes two ByteStrings and returns a list of corresponding pairs of Chars. If one input ByteString is short, excess elements of the longer ByteString are discarded. This is equivalent to a pair of unpack operations, and so space usage may be large for multi-megabyte ByteStrings
zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function. For example, zipWith (+) is applied to two ByteStrings to produce the list of corresponding sums.
zipWith generalises zip by zipping with the function given as the first argument, instead of a tupling function. For example, zipWith (+) is applied to two ByteStrings to produce the list of corresponding sums.
A specialised version of zipWith for the common case of a simultaneous map over two ByteStrings, to build a 3rd.
O(n) unzip transforms a list of pairs of bytes into a pair of ByteStrings. Note that this performs two pack operations.
A specialised version of zipWith for the common case of a simultaneous map over two ByteStrings, to build a 3rd.
unzip transforms a list of pairs of Chars into a pair of ByteStrings. Note that this performs two pack operations.
O(n) unzip transforms a list of pairs of chars into a pair of ByteStrings. Note that this performs two pack operations.