Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not a Clojure person, but there are transducers, https://clojure.org/reference/transducers.


Which are in a way comparable, but I'd say that pipes are more like the arrow ->.

Transducers are compostable algorithmic transformations that, in a way, generalize map, filter and friends but they can be used anywhere where you transform data. Transducers have to be invoked and handled in a way that pipes do not.

Anyone interested should check out Hickeys talks about them. They are generally a lot more efficient than chaining higher order list processing functions and since they don't build.intermediate results they have a lot better GC performance.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: