2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
6
Task/Deepcopy/Perl-6/deepcopy-1.pl6
Normal file
6
Task/Deepcopy/Perl-6/deepcopy-1.pl6
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
my %x = foo => 0, bar => [0, 1];
|
||||
my %y = %x.deepmap(*.clone);
|
||||
|
||||
%x<bar>[1]++;
|
||||
say %x;
|
||||
say %y;
|
||||
8
Task/Deepcopy/Perl-6/deepcopy-2.pl6
Normal file
8
Task/Deepcopy/Perl-6/deepcopy-2.pl6
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use MONKEY-SEE-NO-EVAL;
|
||||
|
||||
my %x = foo => 0, bar => [0, 1];
|
||||
my %y = %x.perl.EVAL;
|
||||
|
||||
%x<bar>[1]++;
|
||||
say %x;
|
||||
say %y;
|
||||
Loading…
Add table
Add a link
Reference in a new issue