Hacker News new | ask | show | jobs
by dhruvchandna 4744 days 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