Skip to content

Commit b5a9077

Browse files
committed
Remove extraneous .unique call
1 parent 55a077d commit b5a9077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Hash.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,13 @@ initialization very useful ways. Take for instance the case of an inverted
509509
index:
510510
511511
my %wc = 'hash' => 323, 'pair' => 322, 'pipe' => 323;
512-
(my %inv).push: %wc.invert.unique;
512+
(my %inv).push: %wc.invert;
513513
say %inv; # OUTPUT: «{322 => pair, 323 => [pipe hash]}␤»
514514
515515
Note that such a initialization could also be written as
516516
517517
my %wc = 'hash' => 323, 'pair' => 322, 'pipe' => 323;
518-
my %inv .= push: %wc.invert.unique;
518+
my %inv .= push: %wc.invert;
519519
520520
B<Note:> Compared to L«C<append>|/routine/append», C<push> will add the given
521521
value as is, whereas C<append> will L«C<slip>|/routine/slip» it in:

0 commit comments

Comments
 (0)