Skip to content

Commit

Permalink
Added docs for Setty.Bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Olof Hendig committed Aug 2, 2016
1 parent 9810f0d commit 8481062
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/Type/Setty.pod6
Expand Up @@ -90,6 +90,20 @@ object, this is just the number of elements.
Returns C<True> if C<$other> and C<self> contain all the same elements,
and no others.
=head2 method Bool
Defined as:
method Bool(Setty:D:) returns Bool
Returns C<True> if the invocant contains at least one element.
my $s1 = Set.new(1, 2, 3);
say $s1.Bool; # True
my $s2 = $s1 ∩ Set.new(4, 5); # set intersection operator
say $s2.Bool; # False
=head1 See Also
L<Sets, Bags, and Mixes|/language/setbagmix>
Expand Down

0 comments on commit 8481062

Please sign in to comment.