re: Fibonacci in Every Language VIEW POST

FULL DISCUSSION
 

haskell

fib :: Integer -> Integer
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)
code of conduct - report abuse