Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace "uniq" fossil with "unique".
  • Loading branch information
edwinst committed Mar 24, 2015
1 parent c340ab6 commit 74e3d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S32-setting-library/Containers.pod
Expand Up @@ -476,7 +476,7 @@ C<is canonicalized(&lc)>.)

multi method unique(List:D: --> List:D, :&as)

multi sub uniq(*@values --> List:D, :&as)
multi sub unique(*@values --> List:D, :&as)

Returns a list of unique values from the invocant/argument list, such
that only the first occurrence of each duplicated value remains in the
Expand All @@ -491,7 +491,7 @@ duplicates are removed.
objects are adjacent.)

The optional C<:as> parameter allows you to normalize/canonicalize the elements
before uniq-ing. The values are transformed for the purposes of comparison, but
before unique-ing. The values are transformed for the purposes of comparison, but
it's still the original values that make it to the result list:

say <a A B b c b C>.unique(:as(&lc)) # a B c
Expand Down

0 comments on commit 74e3d75

Please sign in to comment.