Fibonacci List One-Liner in Haskell

fiblist = 0 : 1 : zipWith (+) fiblist (tail fiblist) -- you can access members of this list as follows: -- fiblist !! 10 -- (returns 55) -- fiblist !! 100 -- returns 354224848179261915075

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.