• Returns an iterator of iterators over the next 'count' items of the given iterable

    Parameters

    • it: Iterable<any>
    • count: number

    Returns Generator<any[], void, unknown>

    Example

    import { next } from 'deleight/generational';
    const o1 = [1, 2, 3, 4];
    const o2 = ['a', 'b', 'c', 'd'];
    const zip = group(flat(o1, o2), 2);