GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– 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-array
  • purge-array
  • read-array
  • write-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