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

+7 votes
in Transducers by
retagged by

run! is convenient to ensure that no intermediate sequence is created when applying functions over large collections. A common need is to couple it with eduction to apply
transformations on the input.

I was wondering if adding an arity to run! was something that could be considered to make this common case even more handy.

This would make (run! xf proc coll) a shorthand for (run! proc (eduction xf coll)).
As always if there's actual interest in this, I'm happy to supply a patch for it.

1 Answer

0 votes
selected by
I have attached a patch to the provided ticket, thanks.