Bool
Bool
Bool refers to the Boolean type. They can be used as values but more often represent whether a shell command exited successfully. In Str context a Bool will be '1' if true and "" (they empty string) if false.
say True.WHAT #-> Bool
say False.WHAT #-> Bool
say ("foo" eq "bar").WHAT; #-> Bool
say False; #-> ''
say True; #-> '1'
ACCEPTS
Simply returns the value of the invocant regardless of the argument.
Int
method Int( ā¶ Int)
In Int context, Bools become a 1 if True or a 0 if False.
gist
method gist( ā¶ Str)
.gist returns "True" or "False".