Return to Snippet

Revision: 11388
at February 3, 2009 21:26 by aflatter


Initial Code
fib 0 = (1,0)
fib n = (a+b,a)
  where (a,b) = fib (n-1)
  
fibo n = a where (a,b) = fib n

Initial URL

                                

Initial Description

                                

Initial Title
Fibonacci Numbers in Haskell

Initial Tags

                                

Initial Language
Other