Skip to content

Instantly share code, notes, and snippets.

@jutikorn
Last active July 22, 2017 07:05
Show Gist options
  • Save jutikorn/f8110c664a143a4f5b4177f613b15cf4 to your computer and use it in GitHub Desktop.
Save jutikorn/f8110c664a143a4f5b4177f613b15cf4 to your computer and use it in GitHub Desktop.
tco sample
fun myfunc(num : Int = 20): Int {
if(num == 0){
return 0
} else {
return myfunc()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment