Vely logo install
examples
documentation

Vely 15.2.0 released on Jan 18, 2023
Articles updated Jan 17, 2023

purge-hash


Issues with this documentation page? Report here.

Purpose:


Purge hash table.

Syntax:



purge-hash <hash>


Description:


purge-hash deletes all key/value pairs from <hash> table that was created with new-hash.

After purge-hash, the hash is empty and 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 hash, put some data in it and then purge the data:

new-hash h size 100
write-hash h key "mykey" value "myvalue"
purge-hash h

See read-hash for more examples.

See also:


Hash table ( get-hash   new-hash   purge-hash   read-hash   resize-hash   write-hash  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Vely elephant logo (c) 2022 DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.