Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for Bool.Numeric
  • Loading branch information
Jan-Olof Hendig committed Aug 14, 2016
1 parent fb86f5e commit 18d98d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/Type/Bool.pod6
Expand Up @@ -71,6 +71,15 @@ C<$count> an infinite L<Seq|/type/Seq> of C<Bool>s is returned.
say Bool.roll(3); # (True False False)
say Bool.roll(*); # (...)
=head2 routine Numeric
multi method Numeric(Bool:D) returns Int:D
Returns the value part of the C<enum> pair.
say False.Numeric; # 0
say True.Numeric; # 1
=head1 Operators
=head2 prefix ?
Expand Down

0 comments on commit 18d98d6

Please sign in to comment.