Purge array

Purpose: Purge an array.

 purge-array <array>

purge-array deletes all elements from <array> table that was created with new-array.

After purge-array, you can use it without calling new-array again. Note however, that "average-reads" statistics (see get-array) is not reset - it keeps being computed and remains for the life of the array.
Examples
Create array, put some data in it and then delete the data:
 new-array h
 write-array h key "mykey" value "myvalue"
 purge-array h

See read-array for more examples.
See also
Array
get-array  
new-array  
purge-array  
read-array  
resize-array  
write-array  
See all
documentation


Copyright (c) 2019-2024 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.