Skip to content

Instantly share code, notes, and snippets.

@chribben
Created July 21, 2012 21:19
Show Gist options
  • Save chribben/3157229 to your computer and use it in GitHub Desktop.
Save chribben/3157229 to your computer and use it in GitHub Desktop.
Fibonacci
let fibonacci =
seq{yield 0
yield 1
yield 1
let rec fibo a b =
seq{yield (a + b)
yield! fibo b (a+b)}
yield! fibo 1 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment