News for hackers. Stuff that matters.
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:

(apply + (for [x (range 10) :when (even? x)] (inc x)))

Re:Reducers, transducers and core.async in Clojure by eliben on Wednesday June 07, 2017 @03:36PM (#14509265)
In Python 3 functions like reduce were moved to the functools module, not removed from the language.