07 Jan 13, 03:07AM
Ah right, I think its wiser to return a modified copy of the initial list. If scripters want to apply the changes to the list they could do something like:
[cubescript]testList = (swapElements $testList 2 4)[/cubescript]
I think it would be awesome if it had the ability to swap more than 1 pair of elements at a time. Not sure of the best way to achieve that though. I'll throw any ideas I come up with your way in a PM. :)
[cubescript]testList = (swapElements $testList 2 4)[/cubescript]
I think it would be awesome if it had the ability to swap more than 1 pair of elements at a time. Not sure of the best way to achieve that though. I'll throw any ideas I come up with your way in a PM. :)