Fork me on GitHub

What's the purpose of these calls to reduced? on add!? AFAICT the add! function, which dispatches to add!* methods, never returns a clojure.lang.Reduced, at least for the built-in buffer types.


Ah, I think the first has to do w/ transducers like (take-while pred) that can returned a reduced value. The second too, probably--is there a transducer which, given a result (`buf`), does something other than simply passing it to rf (`add!`)?

Alex Miller (Clojure team)10:09:29

An expanding transducer like mapcat will do it more than once via reduce


Do what more than once?