Purge hash

Purpose: Purge a hash.

 purge-hash <hash>

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

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

See read-hash for more examples.
See also
Hash
get-hash  
new-hash  
purge-hash  
read-hash  
resize-hash  
write-hash  
See all
documentation


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