Function swap

  • Exchange two values.

    Returns

    x' | x' = x; x'[k] = x[l]; x'[l] = x[k]

    Type Parameters

    • K

    • V

    Parameters

    • x: Lists<K, V>

      lists

    • k: K

      a key

    • l: K

      another key

    Returns Lists<K, V>

Generated using TypeDoc