Returns a generator over the combined items of all the input args (iterables), starting from the zero index to the maximum index of the smallest arg.
The effective length of the generator is the length of the smallest input iterable.
Rest
import { zip } from 'deleight/generators';for (let i of zip(range(10), range(15))) { console.log(i); // (0, 0), (1, 1), (2, 2), .... till range(10) is exhausted.} Copy
import { zip } from 'deleight/generators';for (let i of zip(range(10), range(15))) { console.log(i); // (0, 0), (1, 1), (2, 2), .... till range(10) is exhausted.}
Returns a generator over the combined items of all the input args (iterables), starting from the zero index to the maximum index of the smallest arg.
The effective length of the generator is the length of the smallest input iterable.