Doubly-linked list/Definition: Difference between revisions

Content added Content deleted
m (omit TI-BASIC)
m (Fixed lang tags.)
Line 14: Line 14:
{{works with|ALGOL 68G|Any - tested with release mk15-0.8b.fc9.i386}}
{{works with|ALGOL 68G|Any - tested with release mk15-0.8b.fc9.i386}}
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release 1.8.8d.fc9.i386}}
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release 1.8.8d.fc9.i386}}
<lang algol68>MODE DATA = STRING; # user defined data type #
<lang ada>
MODE DATA = STRING; # user defined data type #
MODE MNODE = STRUCT (
MODE MNODE = STRUCT (
Line 127: Line 126:
# sweep heap #
# sweep heap #
FI
FI
)</lang>
)
</lang>
Output:
Output:
<pre>
<pre>
Line 592: Line 590:


=={{header|D}}==
=={{header|D}}==
<lang d>
<lang d>class LinkedList(T)
class LinkedList(T)
{
{
Node!(T) head, tail;
Node!(T) head, tail;
Line 698: Line 695:
}
}
writeln;
writeln;
}</lang>
}
</lang>
Output:
Output:
<pre>
<pre>