Skip to content

iter::zip

zip(a, b)

ParameterTypeDescription
aIterable
bIterable

Returns

(Generator) A list containing pairs of values.

Example

elk
[1, 2, 3] | iter::zip([4, 5, 6]) #=> [(1, 4), (2, 5), (3, 6)]
[1, 2, 3] | iter::zip([4, 5, 6]) #=> [(1, 4), (2, 5), (3, 6)]