reference:evaluator:arrayerase

ArrayErase(
     array:array,
     [int:index1],
     [int:index2]
)
int

Arguments

array

Array to erase elements from.

index1

Optional. Start of range of elements to erase.

index2

Optional. End of range of elements to erase.

Return value

New size of the array.

Description

Erases the specified range of values from the array.

If neither index is provided all values are erased. If index2 isn't provided all values from the specified index to the end of the array are erased.

Examples:

arr = ArrayCreate(1,2,3,5,8,13,21);
ArrayErase(arr, 2, 4);
Output(arr);
-> {1, 2, 13, 21}

See also:
ArrayCreate
ArrayCopy
ArrayGet
ArrayPop
ArrayPush
ArrayRev
ArraySet
ArraySort