Re: moving from core.async/reduce to transducers

2015-05-06 Thread adrian . medina
It will act exactly like transduce if you put a transducer on the input channel. On Wednesday, May 6, 2015 at 12:26:55 PM UTC-4, Pierre-Yves Ritschard wrote: Hi clojure, There's a thing I find myself doing often in some of my projects where I reduce over a core.async channel this way:

moving from core.async/reduce to transducers

2015-05-06 Thread Pierre-Yves Ritschard
Hi clojure, There's a thing I find myself doing often in some of my projects where I reduce over a core.async channel this way: (core.async/reduce update-fn init-state input-channel) By doing this on a stream of inbound events. When looking at doing this with transducers, it's a bit unclear how