Re:Reducers, transducers and core.async in Clojure
by didibus on Wednesday June 07, 2017 @02:43PM
(#14508838)
Python is multi-paradigm, I think everyone would agree, but I think they removed the ability to do this with function composition like map, reduce and filter in v3 no? Specifically in favor of list comprehensions and generators?
Anyways, if you do it with list comprehensions in Clojure it would look like this:
Anyways, if you do it with list comprehensions in Clojure it would look like this:
(apply + (for [x (range 10) :when (even? x)] (inc x)))