Function swap$

  • Exchange two values!

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array (updated!)

    • i: number

      an index

    • j: number

      another index

    Returns T[]

    x | x[i] ⇔ x[j]

Generated using TypeDoc