Provides functionality to zip lists. The provided subroutine returns a list formed from
the input lists.
List::MoreUtils also provides functionality to mesh lists. However, this implementation
differs. If the lists passed to zip have different sizes all the the lists will be truncated to
the same size as the smallest list.
say $zipped[0]->[0]; # 1
say $zipped[0]->[1]; # one
say $zipped[1]->[0]; # 2
say $zipped[1]->[1]; # two
# We can get back to the original structure before zipping by zipping
# the list again with no additional lists
my @unzipped = List::Zip->zip(@zipped);
say for @{ $unzipped[0] }; # 1 2 3 4 5
say for @{ $unzipped[1] }; # one two three four five
METHODS
zip - Converts this list by combining corresponding elements from the input lists into lists.