GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– GOLF(2gg) β€” the one and only πŸ’–

okay bestie, welcome to the GOLF(2gg) page, straight out of the Development manual section. this is the glow-up edition of the write-lifo docs and we're gonna read it together, no cap. 🫢


✨ NAME ✨

write-lifo β€” write into a LIFO list πŸ’…

(it literally says "(LIFO)" in the original and honestly? iconic. that's the whole personality.)


🎯 PURPOSE 🎯

Write a key/value pair into a LIFO list. that's it, that's the mission, main character energy only. πŸ‘‘


🌸 SYNTAX 🌸

write-lifo <list> \
    key <key> \
    value <value>

look at those little line continuations, so tidy. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

write-lifo adds a pair of key/value to the LIFO <list>, and you specify them with the strings <key> and <value> β€” those live inside the key and value clauses, and together we call the whole thing an element. periodt. πŸ’œ

It always adds an element, and here's the slay: whatever you write to <list> last is gonna be the first one to get read back out with read-lifo. last in, first out, the way that the universe intended it. πŸ”₯

lowkey important: this is the entire point of the command. don't fight the LIFO, bestie, be the LIFO. 🌈

🌟 EXAMPLES 🌟

okay so here's a whole little moment, first we make a LIFO then we write to it:

new-lifo nf
write-lifo nf key "mykey" value "myvalue"

see how the quotes stay? quotes stay. we don't touch quotes. πŸ’―


πŸ‘€ SEE ALSO πŸ‘€

  • LIFO
  • delete-lifo
  • get-lifo
  • new-lifo
  • purge-lifo
  • read-lifo
  • rewind-lifo
  • write-lifo

also: See all documentation β€” go read the whole shelf, it's giving study date at the library. πŸ“šβœ¨


so that's the page!! this was $VERSION, dated $DATE, and it belongs to the GOLF(2gg) manual. bye bestie, go write some LIFOs πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from