Skip to content

Instantly share code, notes, and snippets.

@seanhess
Created June 3, 2014 14:22
Show Gist options
  • Save seanhess/b3df4c1be0965527b70e to your computer and use it in GitHub Desktop.
Save seanhess/b3df4c1be0965527b70e to your computer and use it in GitHub Desktop.
Fib Haskell
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment