Function chunk

  • Break set into chunks of given size.

    Type Parameters

    • T

    Parameters

    • x: Set<T>

      a set

    • n: number = 1

      chunk size [1]

    • s: number = n

      chunk step [n]

    Returns Set<T>[]

    [x[0..n], x[s..s+n], x[2s..2s+n], ...]

Generated using TypeDoc