Singly-linked list/Element definition: Difference between revisions

m
(→‎{{header|Wren}}: Rewrote this as the task is about element definition rather than the definition of the singly-linked list itself.)
Line 1,794:
=={{header|Wren}}==
{{libheader|Wren-llist}}
The Node class in the above module is the element type for the LinkedList class which is a generic singly-linked list. The latter is implemented in such a way that the user does not need to deal drectlydirectly with Node though for the purposes of the task we show below how instances of it can be created and manipulated.
<lang ecmascript>import "/llist" for Node
 
9,485

edits