ee.List.swap

Swaps the elements at the specified positions. A negative position counts backwards from the end of the list.

UsageReturns
List.swap(pos1, pos2)List
ArgumentTypeDetails
this: listList
pos1Integer
pos2Integer