You know how some people say that it's useless to re-implement array methods in terms of .reduce.... well, it turns out it's not that useless. We can use that handy "feature" to build composable operations on top of reducers, and use .reduce itself as an iteration protocol. This stuff is insane.
You know how some people say that it's useless to re-implement array methods in terms of
.reduce
.... well, it turns out it's not that useless. We can use that handy "feature" to build composable operations on top of reducers, and use.reduce
itself as an iteration protocol. This stuff is insane.Transducers in javascript
Heiker ・ Dec 28 '20 ・ 15 min read