Function cutRight

  • Break array after test passes.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns T[][]

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

Generated using TypeDoc