Function pop()

← Back to Module core



Module core → pop()

Description

Remove the first element of an array

pop(arr)


Parameters


Return Value


Usage Example

a = [1, 2, 3, 4, 5, 6]
pop(a)
pop(a)
 
' a is:
' array(
'    [0] = 3,
'    [1] = 4,
'    [2] = 5,
'    [3] = 6
' )