2 ms·
All of the above is good except for transducers. They are a necessary hack in Clojure because the data is immutable running a large number of functions across
by jgalt212 10y ago
All of the above is good except for transducers. They are a necessary hack in Clojure because the data is immutable running a large number of functions across changing data is rife with overhead in Clojure. So the hack is mutate the code many times, so you only have mutate the data once.
- thomasvarney723 10y agoI see what you mean and although the definition of a from-scratch transducer looks a bit ugly to me, the idea of composing existing transducers together seems rather elegant.