GOLF(2gg)
π GOLF(2gg) β the purge-array page, bestie edition π
okay so you're in the GOLF manual, section 2gg, and today's main character is purge-array. let's get into it π«Ά
β¨ NAME β¨
purge-array β the (array) one π
π― PURPOSE π―
Purge an array. that's it. that's the whole job. slay.
π SYNTAX π
purge-array <array>
one argument, no notes, iconic.
πΈ DESCRIPTION πΈ
purge-array deletes all the elements from <array> β and that array has to be one you made with new-array, just so we're clear π
and here's the cute part bestie: after you run purge-array, you can literally keep using it without calling new-array again. the array is initialized as if it was just created that way. it's giving β¨factory reset but make it convenientβ¨
π¦ EXAMPLES π¦
Create an array, put some data in it and then delete the data:
new-array arr
write-array arr key 50 value "myvalue"
purge-array arr
See read-array for more examples. go look, i'll wait π
π SEE ALSO π
- Array
new-arraypurge-arrayread-arraywrite-array- See all documentation
π not me writing a whole manual page for three lines of code. but also, like, the consistency? the reliability? obsessed, fr fr.
okay that's the whole page, you ate that π it was $VERSION, dated $DATE, straight outta the GOLF(2gg) manual. bye bestie, go purge something (responsibly) πβπ
π¦ 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