tagged #fp
Ninja Reducers
5 min readpublished 4 years ago · Feb 05, 2019
We defined reducers as a function that accepts two inputs and produces a single output. What about reducers that don't immediately look like reducers? You may already know a few!
Transducers
7 min readpublished 4 years ago · Feb 04, 2019
You have a reducer that's almost perfect, but it's not quite right. A transducer can take your existing reducer and fit it to the task at hand.
Reducers
7 min readpublished 4 years ago · Feb 03, 2019
It may not be immediately obvious through the many modern layers of abstraction, but code can often be boiled down to piping some number of inputs to some other form of output. Reducers play a key role in this process.