# ee.List.set

Replaces the value at the specified position in list with element. A negative index counts backwards from the end of the list.

<br />

| Usage | Returns |
|---|---|
| `List.set(index, element)` | List |

| Argument | Type | Details |
|---|---|---|
| this: `list` | List |   |
| `index` | Integer |   |
| `element` | Object |   |