Skip to content

Commit

Permalink
Documentation for ".Int on Bool objects returns an Int object" from #…
Browse files Browse the repository at this point in the history
…2632 todo list.
  • Loading branch information
lukasvalle committed May 4, 2019
1 parent 95ad544 commit df3cd63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/Type/Bool.pod6
Expand Up @@ -105,6 +105,15 @@ C<$count> an infinite L<Seq|/type/Seq> of C<Bool>s is returned.
say Bool.roll(3); # OUTPUT: «(True False False)␤»
say Bool.roll(*); # OUTPUT: «(...)␤»
=head2 routine Int
multi method Int(Bool:D --> Int:D)
Returns the value part of the C<enum> pair.
say False.Int; # OUTPUT: «0␤»
say True.Int; # OUTPUT: «1␤»
=head2 routine Numeric
multi method Numeric(Bool:D --> Int:D)
Expand Down

0 comments on commit df3cd63

Please sign in to comment.