Skip to content

Instantly share code, notes, and snippets.

@alex-lx
Last active December 18, 2015 06:59
Show Gist options
  • Save alex-lx/5743536 to your computer and use it in GitHub Desktop.
Save alex-lx/5743536 to your computer and use it in GitHub Desktop.
fib in haskell
fibs = 1:1:zipWith (+) fibs (tail fibs)
fib n = fibs !! n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment