array.set
Sets the element at index (negative counts from the end).
array.set(id: array<any>, index: int, value: element type)
Parameters
idarray<any>: The array; na stops the script with a runtime error.indexint: Position, 0 = the first element; a negative index counts from the end (-1 = the last). Outside the array or na stops the script with a runtime error.valueelement type: a value of the array element type
Example
a.set(0, close)