src code

instance method Enumerable#zip

Enumerable#zip(sequence...[, iterator = Prototype.K]) → Array

Zips together (think of the zip on a pair of trousers) 2+ sequences, providing an array of tuples. Each tuple contains one value per original sequence. Tuples can be converted to something else by applying the optional iterator on them.