Skip to content

Commit

Permalink
use a slightly different example for uniq method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 26, 2015
1 parent 168b13b commit 09579d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Collection.pm
Expand Up @@ -360,8 +360,8 @@ callback/method.
# "foo bar baz"
Mojo::Collection->new('foo', 'bar', 'bar', 'baz')->uniq->join(' ');
# "[[1, 2, 3]]"
Mojo::Collection->new([1, 2, 3], [3, 2, 1])->uniq(sub{ $_->[1] })->to_array;
# "[[1, 2], [2, 1]]"
Mojo::Collection->new([1, 2], [2, 1], [3, 2])->uniq(sub{ $_->[1] })->to_array;
=head1 SEE ALSO
Expand Down

0 comments on commit 09579d3

Please sign in to comment.