Function partialSort$

  • Partially arrange values in order!

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array (updated!)

    • n: number

      minimum number of values to sort

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

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

      map function (v, i, x)

    • fs: SwapFunction<T> = null

      swap function (x, i, j)

    Returns T[]

    x | x[i] ≤ x[j] ∀ i ≤ j

Generated using TypeDoc