Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for Baggy.Bool. timotimo++
  • Loading branch information
Jan-Olof Hendig committed Jun 18, 2016
1 parent 67244e4 commit 48b97ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/Type/Baggy.pod
Expand Up @@ -248,6 +248,19 @@ Returns zero.
my $breakfast = bag <eggs bacon>;
say $breakfast.default; # 0
=head2 method Bool
Defined as:
method Bool(Baggy:D:) returns Bool:D
Returns C<True> if the invocant contains at least one element.
my $breakfast = ('eggs' => 1).BagHash;
say $breakfast.Bool; # True (since we have one element)
$breakfast<eggs> = 0; # weight == 0 will lead to element removal
say $breakfast.Bool; # False
=head2 method Set
Defined as:
Expand Down

0 comments on commit 48b97ca

Please sign in to comment.