Function cut

  • Break array when test passes.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns T[][]

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

Generated using TypeDoc