Created
December 8, 2016 12:18
-
-
Save anonymous/b32db0a4841361a1a33553377ed0eafd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my int @a[1]; | |
sub f($i) { | |
@a[0]; | |
if $i >= 0 { f($i-1) } | |
elsif $i < 0 { f($i) } | |
} | |
f(900); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my int @a[1]; | |
sub f($i) { | |
@a[0]; | |
f($i-1) if $i > 0; | |
f($i-1) if $i < 1; | |
} | |
f(900); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment