we quite easily could build our reduce that way, but that’s too complex an architectural debate for our purposes here
Javascript Transducers 2: Stateful & Gateful
Drew Tipson

Could you elaborate? What makes it complex? I think I would have gone for that solution without thinking of the (clever) solution you offer below

Like what you read? Give Achille Urbain a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.