# ee.List.swap

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

<br />

| Usage | Returns |
|---|---|
| `List.swap(pos1, pos2)` | List |

| Argument | Type | Details |
|---|---|---|
| this: `list` | List |   |
| `pos1` | Integer |   |
| `pos2` | Integer |   |