GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’… GOLF(2gg) πŸ’…

okay bestie, welcome to the Development section of the 2gg manual β€” this is get-list and she's here to spill the tea about your linked list πŸ’–


✨ NAME ✨

get-list β€” (linked-list)


🎯 PURPOSE 🎯

Get information about linked list. that's it. that's the whole job. she's an informant, a gossip, a girl who knows things 🫢


πŸŽ€ SYNTAX πŸŽ€

get-list <list> count <count>

🌸 DESCRIPTION 🌸

So like, get-list will obtain information about a linked <list> β€” and that list has to be one you made with new-list, okay? don't come at her with some random list, she only knows the ones born from new-list πŸ’€

And <count> (the one living inside the "count" clause, iykyk) is the number of elements in the list. that's the info she's giving you. the headcount. the roster. the vibe check on how many things are actually in there ✨


πŸ¦‹ EXAMPLES πŸ¦‹

Say you wanna get the number of elements in list "mylist", and you wanna store it in number "size" β€” boom:

get-list mylist count size

she ate that, no crumbs πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

  • Linked list

and the whole girl squad of list commands:

  • delete-list
  • get-list
  • new-list
  • position-list
  • purge-list
  • read-list
  • write-list

See all documentation πŸ’œ


sign-off time, bestie πŸŽ€ this one's stamped $DATE with version $VERSION β€” GOLF(2gg), periodt. now go count your elements, main character πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from