Created
August 1, 2012 01:21
-
-
Save isaacsanders/3222308 to your computer and use it in GitHub Desktop.
A list of all fibonacci numbers in 1 line of Haskell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fibonacciNumbers = 1 : scanl (+) 1 fibs | |
-- Thanks to @ReinH for the tip! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment