Function sort$

  • Arrange values in order!

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array (updated!)

    • 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