Skip to content

iter::zipLongest

zipLongest(a, b)

ParameterTypeDescription
aIterable
bIterable

Returns

(Generator) A list containing pairs of values.

Example

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