array.shift
Removes the first element and returns it. Runtime error on an empty array.
array.shift(id: array<any>) -> element type
Parameters
idarray<any>: The array; na stops the script with a runtime error. An empty array also stops it.
Example
if a.size() > 20
a.shift()