You are viewing a single comment's thread. Return to all comments →
Easy in Haskell
fib n = fibs !! (n -1) where fibs = 0:1:[(a+b)|(a, b) <- zip fibs (tail fibs)]
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Numbers
You are viewing a single comment's thread. Return to all comments →
Easy in Haskell