Go forward to Numeric Array Subscripts.
Go backward to Scanning an Array.
Go up to Arrays.
The `delete' Statement
======================
You can remove an individual element of an array using the `delete'
statement:
delete ARRAY[INDEX]
You can not refer to an array element after it has been deleted; it
is as if you had never referred to it and had never given it any value.
You can no longer obtain any value the element once had.
Here is an example of deleting elements in an array:
for (i in frequencies)
delete frequencies[i]
This example removes all the elements from the array `frequencies'.
If you delete an element, a subsequent `for' statement to scan the
array will not report that element, and the `in' operator to check for
the presence of that element will return 0:
delete foo[4]
if (4 in foo)
print "This will never be printed"
It is not an error to delete an element which does not exist.