Skip to content

Commit

Permalink
.perl → .raku
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Feb 26, 2020
1 parent 439437a commit 9557329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Hash.pod6
Expand Up @@ -17,7 +17,7 @@ them in the same order:
my %orig = :1a, :2b; my %new = :5b, :6c;
%orig{ %new.keys } = %new.values;
say %orig.perl; # OUTPUT: «{:a(1), :b(5), :c(6)}␤»
say %orig.raku; # OUTPUT: «{:a(1), :b(5), :c(6)}␤»
In this case, C<b> will always be associated to 5 and C<c> to 6; even if two
successive calls to C<keys> will return them in different order. Successive
Expand Down Expand Up @@ -301,7 +301,7 @@ The same applies to the sub C<push>.
my %h .= push(e => 6);
push %h, f => 7;
say %h.perl;
say %h.raku;
# OUTPUT: «{}␤»
Also note that push can be used as a replacement for assignment during hash
Expand Down

0 comments on commit 9557329

Please sign in to comment.