Mind-Fuck/dyn-recurse.raku

20 lines
185 B
Raku
Raw Normal View History

2023-09-01 19:39:24 +00:00
#!/usr/bin/env raku
use v6.d;
sub plus-one {
$*number++;
say $*number;
return if 100 < $*number;
plus-one;
}
sub MAIN {
my Int $*number = 42;
plus-one;
}