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.

UsageReturns
List.set(index, element)List
ArgumentTypeDetails
this: listList
indexInteger
elementObject