Created
July 22, 2017 07:08
-
-
Save jutikorn/ab2f72c3751599f409478948a1f70816 to your computer and use it in GitHub Desktop.
Not TCO
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
fun notaTailRecursionFunction(num : Int = 20): Int { | |
if(num == 0){ | |
return 0 | |
} else { | |
return notaTailRecursionFunction() + 10 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment