07 Jan 13, 02:58AM
The script you posted is ambiguous in the sense of if swapElements simply returns a copy of the initial list with elements swapped around or if testList was actually modified.
Either way I think is easy enough to code. Not sure if you want to swap only two at a time or if you have a better idea.
Either way I think is easy enough to code. Not sure if you want to swap only two at a time or if you have a better idea.