delete
delete — removes an element from an array.
delete (array, position)
arrayAn array.
positionAn integer giving the zero-indexed position of the array element to delete.
The deleted array element, or nil if none was deleted. The return
value will also be nil if
the deleted element was nil itself.
This function removes an element from an array and
compresses the rest of the array to reduce its overall length by one. If the
position is beyond the bounds of the array, nothing happens. This function
is destructive.
Gamma>a = [1,2,3,4,5];[1 2 3 4 5]Gamma>delete(a,3);4Gamma>a;[1 2 3 5]Gamma>