Anonymous user
Singly-linked list/Element definition: Difference between revisions
Singly-linked list/Element definition (view source)
Revision as of 04:56, 16 July 2011
, 12 years ago→{{header|Perl}}: add Perl 6
(added Icon/Unicon example) |
(→{{header|Perl}}: add Perl 6) |
||
Line 444:
);
$node{next} = \%bar_node; # mutable</lang>
=={{header|Perl 6}}==
The <tt>Pair</tt> constructor is exactly equivalent to a cons cell.
<lang perl6>my $elem = 42 => $nextelem;</lang>
=={{header|PicoLisp}}==
|