Skip to content

Instantly share code, notes, and snippets.

@kunishi
Created January 29, 2014 09:56
Show Gist options
  • Save kunishi/8684860 to your computer and use it in GitHub Desktop.
Save kunishi/8684860 to your computer and use it in GitHub Desktop.
fun fibonacci(n) =
if n = 1 then 1
else if n = 2 then 1
else fibonacci(n-1) + fibonacci(n-2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment