Currently if a transducer like map is passed a collection it eagerly performs the transformation. It checks if it's an array to do a fast while loop and otherwise uses reduce to get the generic interface. This is stupid; transducers that eagerly do transformation should just use the iterator interface directly to implement the transform.
Currently if a transducer like
map
is passed a collection it eagerly performs the transformation. It checks if it's an array to do a fastwhile
loop and otherwise usesreduce
to get the generic interface. This is stupid; transducers that eagerly do transformation should just use the iterator interface directly to implement the transform.This will reduce a lot of code bloat.