Created
July 4, 2012 23:19
-
-
Save dLobatog/3050035 to your computer and use it in GitHub Desktop.
Recursive functions with basecase
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
recursive_function(argument1) { | |
if (argument1 == 10) { return argument1 } | |
return recursive_function(argument1 + 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment