Skip to content

Instantly share code, notes, and snippets.

@jpoehls
Created February 27, 2012 19:07
Show Gist options
  • Select an option

  • Save jpoehls/1926329 to your computer and use it in GitHub Desktop.

Select an option

Save jpoehls/1926329 to your computer and use it in GitHub Desktop.
Fibonacci Haskell
-- seen here: http://academicearth.org/lectures/introduction-to-haskell (@ ~14m)
-- returns an infinite fibonacci sequence
fib = 1:1:zipWith (+) fib (tail fib)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment