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

Transducers are, I believe, largely orthogonal to back-pressure concerns. They describe only how transform the data at each step.


That's not correct, because if they described only how to transform the data at each step, then you couldn't describe `take` or `flatMap`.


Because Clojure isn't a pure functional language, transducers may be stateful. `take` uses a volatile (i.e. a fast, mutable variable) to retain state. I don't believe a `flatMap` transducer exists in Clojure yet.




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

Search: