Doubly-linked list/Definition: Difference between revisions
→{{header|Oforth}}
(J: make first example list use the same values as the second example, to place more emphasis on the ordering) |
|||
Line 1,493:
<pre>15 -> 14 -> 12
hello -> world</pre>
=={{header|Objeck}}==
<lang objeck>
use Collection;
class Program {
function : Main(args : String[]) ~ Nil {
list := List->New();
list->AddFront("first");
list->AddBack("last");
list->Insert("middle");
list->Forward();
do {
list->Get()->As(String)->PrintLine();
list->Previous();
}
while(list->Get() <> Nil);
}
}</lang>
=={{header|Oforth}}==
|