Created
April 20, 2012 19:43
-
-
Save nabe256/2431270 to your computer and use it in GitHub Desktop.
Fibonacci number 3
This file contains hidden or 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
fib :: Num a => [a] | |
fib = 0:1:zipWith (+) (fib) (tail(fib)) | |
main = print $ take 10 fib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment