Am Mittwoch, 15. Oktober 2014 18:34:39 UTC+2 schrieb Daniel James:
>
> [...]
> In my proposal above, nothing is changing about the fact that transducers
> transform reducing functions to new reducing functions. The simple change
> is to use the reducing function that is produced by a transformation stack
> to seed the initial value of the reduction, rather than using the input
> reducing function (or explicit input seed value, in the second arity of
> transduce).
>
>
This is a change I am interested in as well. Just yesterday I was bitten
by the fact that in
the 3-arity case the init value of transduce defaults to (f) instead of ((xform
f)):
While experimenting I was trying to splice a group-by-style transducer into
an existing
(comp ...) chain. This step works on a map valued accumulator, and needs
an initial value
of {} irregardless of what (f) would provide.
-- Michael
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.