Boolean values
Raku provides an enumeration Bool with two values, True and False. Values of enumerations can be used as ordinary values or as mixins:
my Bool $crashed = False;
my $val = 0 but True;For a discussion of Boolean context (how Raku decides whether something is True or False): https://docs.raku.org/language/contexts#index-entry-Boolean_context.
Last updated
Was this helpful?