Skip to content

Instantly share code, notes, and snippets.

@shekodn
Created May 21, 2019 06:20
Show Gist options
  • Save shekodn/ff2260b6558853d4512123e0ef35b5c0 to your computer and use it in GitHub Desktop.
Save shekodn/ff2260b6558853d4512123e0ef35b5c0 to your computer and use it in GitHub Desktop.
final_fibonacci_recursive.tl
program factorial_recursive
script {
def factorial(int n) : int {
if (n is 0) {
spit 1;
}
spit n * (factorial(n - 1))
}
eval(factorial(10))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment