Hi,

I'm wondering why reduce doesn't return a transducer like map does. For 
example I'd like to this:

(async/chan 1 (reduce +))

I could use async/reduce but it doesn't provide a result before the source 
channel closes, I want to have a streaming result.

What is the philosophy behind not having reduce return a transducer when no 
collection is passed to it? How should I go about doing a streaming 
stateful reducer, like in my example?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to