From df3cd639867a45013d67e181dd66ffa36f218e83 Mon Sep 17 00:00:00 2001 From: lukasvalle Date: Sat, 4 May 2019 22:17:19 +0200 Subject: [PATCH] Documentation for ".Int on Bool objects returns an Int object" from https://github.com/perl6/doc/issues/2632 todo list. --- doc/Type/Bool.pod6 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/Type/Bool.pod6 b/doc/Type/Bool.pod6 index e2a90fb47..4c4959aa0 100644 --- a/doc/Type/Bool.pod6 +++ b/doc/Type/Bool.pod6 @@ -105,6 +105,15 @@ C<$count> an infinite L of Cs 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 pair. + + say False.Int; # OUTPUT: «0␤» + say True.Int; # OUTPUT: «1␤» + =head2 routine Numeric multi method Numeric(Bool:D --> Int:D)