Created
November 14, 2013 13:52
-
-
Save smiler/7467107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rec fib_aux n a b = | |
match n with | |
| 0 -> a | |
| _ -> fib_aux (n - 1) b (a+b) | |
let fib n = fib_aux n 0 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment