Skip to content

Instantly share code, notes, and snippets.

@Ball
Created November 15, 2009 20:57
Show Gist options
  • Save Ball/235454 to your computer and use it in GitHub Desktop.
Save Ball/235454 to your computer and use it in GitHub Desktop.
let rec fibonacci n =
match n with
| 0 -> 0
| 1 -> 1
| _ -> (fibonacci (n-1)) + (fibonacci (n-2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment