Function divide

  • Divide the elements from arg into n parts, maintaining order. Note, this method will fully iterate through arg before returning a result. If you don't want this behavior and don't care about order then use distribute instead.

    Type Parameters

    • T
    • Size extends number

    Parameters

    Returns Tuple<IterableIterator<T, any, any>, Size>

  • Divide the elements from arg into n parts, maintaining order. Note, this method will fully iterate through arg before returning a result. If you don't want this behavior and don't care about order then use distribute instead.

    Type Parameters

    • T
    • Size extends number

    Parameters

    Returns (arg: IteratorOrIterable<T>) => Tuple<IterableIterator<T, any, any>, Size>