We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a077d commit b5a9077Copy full SHA for b5a9077
doc/Type/Hash.pod6
@@ -509,13 +509,13 @@ initialization very useful ways. Take for instance the case of an inverted
509
index:
510
511
my %wc = 'hash' => 323, 'pair' => 322, 'pipe' => 323;
512
- (my %inv).push: %wc.invert.unique;
+ (my %inv).push: %wc.invert;
513
say %inv; # OUTPUT: «{322 => pair, 323 => [pipe hash]}»
514
515
Note that such a initialization could also be written as
516
517
518
- my %inv .= push: %wc.invert.unique;
+ my %inv .= push: %wc.invert;
519
520
B<Note:> Compared to L«C<append>|/routine/append», C<push> will add the given
521
value as is, whereas C<append> will L«C<slip>|/routine/slip» it in:
0 commit comments