Skip to content

Commit

Permalink
show alternative to pluck
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 3, 2012
1 parent 71031e5 commit e2e32ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Mojo/Collection.pm
Expand Up @@ -182,6 +182,9 @@ from the results.
Call method on each element in collection and create a new collection from the
results.
# Equal to but more convenient than
my $new = $collection->map(sub { $_->$method(@args) });
=head2 C<reverse>
my $new = $collection->reverse;
Expand Down

0 comments on commit e2e32ce

Please sign in to comment.