removeAt

Synopsis

removeAt(@arrray, index, ...)

removes the element located at index from @array.

removeAt(%hash, "index", ...)

removes the element associated with "index" from %hash.

Parameters

@array, %hash - the data structure to remove the referenced elements from

index, ... - the location of the data to remove.

Side Effects / Notes

Examples

%data = %(a => "apple", b => "boy george", c => 33, p => 'pHEAR'); removeAt(%data, "b", "c"); println(%data);

%(a => 'apple', p => 'pHEAR')

See Also