Welcome! Please see the About page for a little more info on how this works.

0 votes
in Transducers by

Eduction is unusual compared to transduce, sequence and a/chan in that it takes a list of xforms rather than a user-composed list. Is there a motivation for this, or an accident of history?

1 Answer

+1 vote
by

The motivation appears to be to aid conversion from lazy-seq code using ->>, e.g.

(->> s (interpose 5) (partition-all 2))

to this:

(->> s (eduction (interpose 5) (partition-all 2)))

Example lifted here from the above link.

by
The same motivation would have been even stronger for `sequence`, I doubt it was the rationale.
...