Created
October 18, 2014 16:50
-
-
Save MikeMKH/5761dee561557545b622 to your computer and use it in GitHub Desktop.
Thurshy example in Clojure
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
;;waterfall | |
(reduce + | |
(filter even? | |
(range 101))) | |
;;thrushy | |
(->> (range 101) (filter even?) (reduce +)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also my blog post which goes with this gist.
http://comp-phil.blogspot.com/2014/10/bird-watching-with-clojure-thrushy.html