Doubly-linked list/Definition: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,495: | Line 1,495: | ||
<pre>15 -> 14 -> 12 |
<pre>15 -> 14 -> 12 |
||
hello -> world</pre> |
hello -> world</pre> |
||
=={{header|Oberon-2}}== |
|||
<lang oberon2> |
|||
IMPORT Basic; |
|||
TYPE |
|||
Node* = POINTER TO NodeDesc; |
|||
NodeDesc* = (* ABSTRACT *) RECORD |
|||
value-: Basic.Boxed; |
|||
prev-,next-: Node; |
|||
END; |
|||
DLList* = POINTER TO DLListDesc; |
|||
DLListDesc* = RECORD |
|||
first-,last-: Node; |
|||
size-: INTEGER; |
|||
END; |
|||
</lang> |
|||
=={{header|Objeck}}== |
=={{header|Objeck}}== |