zip


zip(xs, ys)
      

Return a list with the corresponding pairs from the lists xs and ys.

Examples:


zip([1, 2, 3], [4, 5, 6])
// [1:4, 2:5, 3:6]

zip([1, 2, 3], [4, [5, 6]])
// [1:4, [2, 5, 6]]
      

Also see:

zip_with
unzip
partition


Core Module Index | Contents