Created
January 25, 2011 22:31
-
-
Save jaredcacurak/795832 to your computer and use it in GitHub Desktop.
A Clojure solution for Project Euler - Problem 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (def fibs | |
| (map first | |
| (iterate (fn [[a b]] [b (+ a b)]) [0 1]))) | |
| (reduce + | |
| (take-while | |
| (partial > 4000000) (filter even? fibs))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment