Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add some documentation
  • Loading branch information
marcusramberg committed May 25, 2014
1 parent a8153a5 commit 4108087
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Mojo/Collection.pm
Expand Up @@ -142,6 +142,10 @@ L<Mojo::Collection> is an array-based container for collections.
my $collection = Mojo::Collection->new(1 .. 25);
$collection->[23] += 100;
say for @$collection;
$collection=Mojo::Collection->new();
# Empty collections are false
unless $collection say "I am empty";

This comment has been minimized.

Copy link
@avkhozov

avkhozov May 25, 2014

Contributor

May be say 'I am empty' unless $collection; ?

=head1 FUNCTIONS
Expand Down

0 comments on commit 4108087

Please sign in to comment.