GOLF(2gg)
π GOLF(2gg) β the development manual, but make it cute β¨
okay bestie, listen up, this is the GOLF(2gg) page from the Development section and it's literally all about making a linked list. no cap. π
πΈ NAME πΈ
new-list β the linked-list one π
(it says (linked-list) right there in the parens, iykyk)
β¨ PURPOSE β¨
Create a linked list. that's it. that's the whole job. slay π¦
π SYNTAX π
new-list <list> [ process-scope ]
see how <list> is the main character and [ process-scope ] is the optional little accessory? periodt. π
π DESCRIPTION π
So new-list initializes a brand-new linked <list>, and the way it works is every single element is connected to the previous one and the next one. it's giving chain. it's giving friendship bracelet. π
In a linked <list>, data can be added anywhere in the list, and also accessed anywhere as well. Access to a list is sequential, which means you can position to the first, last, next or previous element. no random-access jumping, bestie, we go in order. Also β important β a list is accessible to the current process only. π
Generally information is stored in a linked list, and then retrieved (possibly many times, like, a lot) in any order later. it's a whole vibe. π
A list has a current position where an element can be read, updated, inserted or deleted (that happens via read-list, write-list and delete-list), and this position can be explicitly changed with position-list. so like, you're always standing somewhere on the list and you can move. main character energy fr fr. β
π SCOPE π
A linked list is accessible to the current process only β unless you use the "process-scope" clause, in which case all requests served by the process can use it (peep do-once for a typical way to create an object with a process scope, that's the classic move). π
If "process-scope" is used, then elements of the list will keep their value between requests in the same process. so it persists, bestie, it remembers. πβ¨
See write-list for an example of a process-scoped list β go look, it's worth it. π«Ά
π¦ EXAMPLES π¦
new-list mylist
look at her. one line. iconic. π₯
π SEE ALSO π
- Linked list
delete-listget-listnew-listposition-listpurge-listread-listwrite-list- See all documentation
okay that's the whole page, you ate it, no crumbs left. this was $VERSION of the page, dated $DATE, and yes it's GOLF(2gg) β bye bestie, go make a list πππ§π
π¦ 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