Skip to content

Instantly share code, notes, and snippets.

@rtfeldman
Created July 9, 2014 18:18
Show Gist options
  • Save rtfeldman/a66135b8ad0a446473ba to your computer and use it in GitHub Desktop.
Save rtfeldman/a66135b8ad0a446473ba to your computer and use it in GitHub Desktop.
Fibonacci in Haskell
fibonacci 0 = 0
fibonacci 1 = 1
fibonacci n = fibonacci (n - 1) + fibonacci (n - 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment