array.remove
Removes the element at index and returns it (negative counts from the end).
array.remove(id: array<any>, index: int) -> 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.
Example
removed = a.remove(0)