swapItem

fun Inventory.swapItem(from: Int, to: Int)(source)