RosettaCodeData/Task/Introspection/Raku/introspection.raku
2023-07-01 13:44:08 -04:00

7 lines
245 B
Raku

my $bloop = -123;
if MY::{'$bloop'}.defined and CORE::{'&abs'}.defined { say abs $bloop }
my @ints = ($_ when Int for PROCESS::.values);
say "Number of PROCESS vars of type Int: ", +@ints;
say "PROCESS vars of type Int add up to ", [+] @ints;