3 ms·
I think its just reduce, but in general its possible to write many implementations of reduce. It could be applied to lazy sequences, observables (to get a futur
by spion 12y ago
I think its just reduce, but in general its possible to write many implementations of reduce. It could be applied to lazy sequences, observables (to get a future or a new observable) and many other reducible things
- richhickey 12y agoYes, it's not just the 'reduce' function. You can think of many kinds of jobs in terms of seeded left reductions. Here's an example of some of the functions that can apply a transducer to their internal 'step' operation: https://gist.github.com/richhickey/b5aefa622180681e1c81 https://gist.github.com/richhickey/b5aefa622180681e1c81 Note how one transducer stack is created and can be reused in many different contexts.