Syntax
shift(array,[value])
Description
The shift() function returns a new array with the first element of array removed if no value is given, otherwise the first value elements are removed.
Example
a=[1,2,3,4,5,6] println(a) a=shift(a) println(a) a=shift(a, 2) println(a) [1, 2, 3, 4, 5, 6] [2, 3, 4, 5, 6] [4, 5, 6]