Doubly-linked list/Traversal: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
(PascalABC.NET) |
||
Line 1,982: | Line 1,982: | ||
=={{header|Pascal}}== |
=={{header|Pascal}}== |
||
See [[Doubly-linked_list/Traversal#Delphi | Delphi]] |
See [[Doubly-linked_list/Traversal#Delphi | Delphi]] |
||
=={{header|PascalABC.NET}}== |
|||
<syntaxhighlight lang="delphi"> |
|||
begin |
|||
var lst := new LinkedList<integer>(1..10); |
|||
var current := lst.First; |
|||
while current <> nil do |
|||
begin |
|||
Print(current.Value); |
|||
current := current.Next; |
|||
end; |
|||
end. |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
1 2 3 4 5 6 7 8 9 10 |
|||
</pre> |
|||
=={{header|Phix}}== |
=={{header|Phix}}== |