4 ms·
While we're on the subject of reduction, I really think transducers [0] deserve a mention. The general idea is to stack operations and use reduce to perform th
by codr7 7y ago
While we're on the subject of reduction, I really think transducers [0] deserve a mention.
The general idea is to stack operations and use reduce to perform the entire transformation in one go, as opposed to chaining calls to map/filter etc.
Which means first class transformation pipelines and less wasted effort among other things.
[0] https://clojure.org/reference/transducers https://clojure.org/reference/transducers