Function split

  • Break array considering test as separator.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns T[][]

    [x[j..k], x[l..m], ...] | ft(x[i]) = true; i = 0..j / k..l / ...

Generated using TypeDoc