You are viewing a single comment's thread. Return to all comments →
fib n = f 0 1 n where f a b n | n == 1 = a | otherwise = f b (a+b) $ n-1
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 →