DEV Community

Discussion on: Map, Filter, Reduce vs For Loops (syntax)

 
joelnet profile image
JavaScript Joel

Transducers are the next evolution. You would start with a list, and learn map, filter, reduce. Once you start applying multiple map/filter/reduces to a single list, you realize you are enumerating the list multiple times, which will slow down your application.

Transducers are a way to apply those multiple map/filter/reduces while enumerating the list one time.