GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’… 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 (peep get-hash for 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-hash
  • new-hash
  • purge-hash
  • read-hash
  • resize-hash
  • write-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