Search code examples
clojurereducerstransducer

Were transducers in the Reducers library in Clojure 1.5 all along?


I heard a comment made today:

"Tranducers were there all along, they came with the reducers in 1.5"

Indeed - Richs's Anatomy of a Reducer blog entry, bears remarkable resemblance to the logic used in his Strange Loop Transducers talk. (Replace 'transformers' with 'transducers').

My question is: Were transducers in the Reducers library in Clojure 1.5 all along?


Solution

  • Pointy is correct, the Idea what there though not accessible as it's own thing. Specifically map filter reduce etc. where not yet capable of producing a transducer and into chan sequence where not available to consume them, so in my opinioin it is safe to say that transducers where not present in Clojure < 1.6.0