GOLF(2gg)
π GOLF(2gg) β bestie edition β¨
okay so you found a page from the GOLF manual, section 2gg, and it's filed under Development. buckle up, this one's short but it's a whole mood π
πΈ NAME πΈ
purge-hash β (hash)
π― PURPOSE π―
Purge a hash. that's it. that's the purpose. she's direct, she's efficient, she's an icon π
β¨ SYNTAX β¨
purge-hash <hash>
π DESCRIPTION π
purge-hash deletes all the elements from <hash> β and we mean the hash that was made with new-hash, okay? don't come at her with some random hash, she only knows the ones new-hash brought into this world π«Ά
and here's the cute part: after purge-hash, you can just keep using that same hash without calling new-hash again. she's still alive, she's just empty. main character energy, honestly π
but ngl, there's a lil caveat bestie: the"average-reads"statistics (peepget-hashfor those) are not reset. they keep being computed and they stay for the entire life of the hash. so that number is gonna remember everything. she keeps receipts π
π 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
want more examples? go look at read-hash, she's got the goods β¨
π SEE ALSO π
- Hash
get-hashnew-hashpurge-hashread-hashresize-hashwrite-hash- See all documentation
okay that's the whole page, you ate it, you understood it, periodt π go forth and purge responsibly π¦
$DATE Β· $VERSION Β· GOLF(2gg) β mwah, love u, bye ππ
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms