Created
March 23, 2016 03:33
-
-
Save rlucha/dd82b3bfdc154e8dd651 to your computer and use it in GitHub Desktop.
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
| (defn fib [a b] (lazy-seq (cons a (fib b (+ b a))))) | |
| (reduce + | |
| (filter even? | |
| (take-while #(< % 4000000) (fib 1 2)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment