4 ms·
Transducers are, I believe, largely orthogonal to back-pressure concerns. They describe only how transform the data at each step.
by weavejester 11y ago
Transducers are, I believe, largely orthogonal to back-pressure concerns. They describe only how transform the data at each step.
- bad_user 11y agoThat's not correct, because if they described only how to transform the data at each step, then you couldn't describe `take` or `flatMap`.
- weavejester 11y agoBecause 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.