Singly-linked list/Element insertion: Difference between revisions
Singly-linked list/Element insertion (view source)
Revision as of 00:47, 12 August 2018
, 5 years ago→{{header|Perl 6}}: Re-added removrd language tags. Re-marked as incorrect
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Re-added removrd language tags. Re-marked as incorrect) |
|||
Line 1,132:
insert_after $list2->{next}, { data => 'A2a' }, { data => 'A2b' };</lang>
=={{header|Perl 6}}==
{{incorrect|Perl 6|This is an array, not a singly linked list. It isn't even attempting to emulate a singly linked list.}}
<lang perl6>my @list = <a b>;
say @list.splice(1,0,'c');
say @list;</lang>
=={{header|Phix}}==
|