Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
uniq is deprecated in favor of unique
  • Loading branch information
moritz committed Dec 21, 2014
1 parent 524ff27 commit 41cd4a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Language/setbagmix.pod
Expand Up @@ -5,7 +5,7 @@
=SUBTITLE Unique collections and weighted lists in Perl 6
Often, one wants to work with lists of values that are unique. While
calling L<C<.uniq>|uniq> on the list repeatedly is certainly an option,
calling L<C<.unique>|unique> on the list repeatedly is certainly an option,
better still is to use a L<B<C<Set>>|Set> or L<B<C<SetHash>>|SetHash>,
whose elements are guaranteed to be unique.
Expand Down
4 changes: 2 additions & 2 deletions lib/Perl6/TypeGraph/Viz.pm
Expand Up @@ -35,10 +35,10 @@ class Perl6::TypeGraph::Viz {

# Add ancestors of all seeds to the pool nodes
visit($_) for @seeds;
@.types .= uniq;
@.types .= unique;

# Find a new batch of seed nodes
@seeds = uniq(@seeds>>.sub, @seeds>>.doers);
@seeds = unique(@seeds>>.sub, @seeds>>.doers);

# If we're not growing the node pool, stop trying
last if @.types <= @prev or !@seeds;
Expand Down

0 comments on commit 41cd4a9

Please sign in to comment.