RAD function: delete

A RAD function that deletes one or more elements in an array and returns the updated array.

Function

delete

Format

delete(array, element number, [number of elements])

Where the array variable is the array, the element number is the index number of the first element to delete, and [number of elements] is the number of elements to delete. The number of elements to delete is optional. The default value is one (1).

Example

delete({1,2,3},2)

Returns {1,3}

delete({1,2,3},2,2)

Returns {1}