swap

abstract fun swap(i: Int, j: Int)

Swap the i-th and j-th values.