Function group

  • Keep similar values together and in order.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

    • fm: MapFunction<T, T | U> = null

      map function (v, i, x)

    Returns T[][]

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

Generated using TypeDoc