swapChildrenAt

fun swapChildrenAt(idx: Int, idx2: Int): Node

Swaps children positions at the specified indices.

Parameters

idx

the index of the first child

idx2

the index of the second child