Function remove()

← Back to Module core



Module core → remove()

Description

Remove the element of an array at the specified index

remove(arr, index)


Parameters


Return Value


Usage Example

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


Availability

This function is available on Dinfio version 3.2.01 or later