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

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: