Function rangedSort

  • Arrange a range of values in order.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • i: number

      begin index

    • I: number

      end index (exclusive)

    • 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' = x; x'[i] ≤ x'[j] ∀ i ≤ j

Generated using TypeDoc