Initial commit++

This commit is contained in:
swagg boi 2023-09-01 15:39:24 -04:00
parent 5a4851880b
commit 8c366dea82
3 changed files with 43 additions and 1 deletions

View file

@ -1,3 +1,7 @@
# Mind-Fuck
jesus fuck what is this
## ???-recurse.raku
How are recursive function calls impacted by dynamic variables?

19
dyn-recurse.raku Executable file
View file

@ -0,0 +1,19 @@
#!/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;
}

19
lex-recurse.raku Executable file
View file

@ -0,0 +1,19 @@
#!/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;
}