Function pop_back()

← Back to Module core



Module core → pop_back()

Description

Remove the last element of an array

pop_back(arr)


Parameters


Return Value


Usage Example

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


Availability

This function is available on Dinfio version 3.2.01 or later