Skip to content

Instantly share code, notes, and snippets.

@jutikorn
Created July 22, 2017 07:08
Show Gist options
  • Save jutikorn/ab2f72c3751599f409478948a1f70816 to your computer and use it in GitHub Desktop.
Save jutikorn/ab2f72c3751599f409478948a1f70816 to your computer and use it in GitHub Desktop.
Not TCO
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