3 ms·
In Clojure you can implement this as: (def fib-list (map first (iterate (fn [[a b]] [b (+ a b)]) [0N 1N]))) (nth fib-list 100) 3542248481792619150
by dhruvchandna 13y ago
In Clojure you can implement this as:
(def fib-list (map first (iterate (fn [[a b]] [b (+ a b)]) [0N 1N])))
(nth fib-list 100)
354224848179261915075N