Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Introduce sub form of unique, deprecate sub uniq
Deprecated since 2014.12 because it currently shows a deprecation warning
from calling the deprecated mesage uniq.
  • Loading branch information
moritz committed Dec 21, 2014
1 parent 4569b17 commit d9ae1dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/Any.pm
Expand Up @@ -582,7 +582,13 @@ multi categorize( $test, *@items ) { {}.categorize-list( $test, @items ) }
#}

proto uniq(|) { * }
multi uniq(*@values, |c) { @values.uniq(|c) }
multi uniq(*@values, |c) {
DEPRECATED('unique', |<2014.12 2015.11>);
@values.unique(|c)
}

proto unique(|) { * }
multi unique(*@values, |c) { @values.unique(|c) }

proto squish(|) { * }
multi squish(*@values, |c) { @values.squish(|c) }
Expand Down

0 comments on commit d9ae1dd

Please sign in to comment.