Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Transforming Composition

Transforming Composition

One of the common "gateways" to getting hooked on FP is when developers discover composition patterns. In JS, this often looks like chains of array method calls using map(), filter(), and reduce(). But deep in the caves below the surface, dragons (of inefficiency) lurk!

We'll explore the caves, slaying those dragons as we uncover various ways of transforming our compositions in JS, including generators and transducers.

Kyle Simpson

January 21, 2025
Tweet

Resources

More Decks by Kyle Simpson

Other Decks in Programming

Transcript