swap

inline fun <T> Array<T>.swap(first: Int, second: Int)

Executes swap between two indices.