/ Published in: Other
Expand |
Embed | Plain Text
fib 0 = (1,0) fib n = (a+b,a) where (a,b) = fib (n-1) fibo n = a where (a,b) = fib n
You need to login to post a comment.
aflatter on 02/03/09
numbers recursive fibonacci haskell
1 person have marked this snippet as a favorite
fib 0 = (1,0) fib n = (a+b,a) where (a,b) = fib (n-1) fibo n = a where (a,b) = fib n
You need to login to post a comment.