• 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.

    Parameters

    • Rest ...its: Iterable<any>[]

    Returns Generator<any[], void, unknown>

    Example

    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.
    }