Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec fib (n: int) : int =
- match n with
- |1 -> 1
- |2 -> 1
- |_ -> fib (n-1) + fib (n-2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement