Re:Reducers, transducers and core.async in Clojure
by emidln on Wednesday June 07, 2017 @11:58AM
(#14507430)
You can also easily write pipeline() (which is just a reduction over callables inside a lambda[0]) such that:
I'll grant that it's not syntactically ideal (this is the tradeoff the thrush combinator (pipeline) running as a function instead of working as a macro. The benefit of being able to follow down the program as it works remains.
If you compare a function-based approach[1] (instead of a macro) you might get:
[0] A sample Python definiton (python doesn't have compose to reverse):
[1] A clojure implementation:
[ Parent
| on HN ]