Anonymous user
Singly-linked list/Element insertion: Difference between revisions
Singly-linked list/Element insertion (view source)
Revision as of 12:25, 6 August 2018
, 5 years ago→{{header|Perl 6}}
m (improved internal links) |
|||
Line 1,131:
# append new nodes ('A2a', 'A2b') after the second element (which now is 'A2')
insert_after $list2->{next}, { data => 'A2a' }, { data => 'A2b' };</lang>
my @list = <a b>;
say @list.splice(1,0,'c');
say @list;
=={{header|Phix}}==
|