Singly-linked list/Element definition: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 117: | Line 117: | ||
List are built in into Pop11, so normally on would just use them: |
List are built in into Pop11, so normally on would just use them: |
||
;;; Use shorthand syntax to |
;;; Use shorthand syntax to create list. |
||
lvars l1 = [1 2 three 'four']; |
lvars l1 = [1 2 three 'four']; |
||
;;; Allocate a single list node, with value field 1 and the link field |
;;; Allocate a single list node, with value field 1 and the link field |