3 ms·
In particular, a query like the one in the original blog post will evaluate multiple intermediate lists that then need to be thrown away. Why not fuse the oper
by gngeal 13y ago
In particular, a query like the one in the original blog post will evaluate multiple intermediate lists that then need to be thrown away.
Why not fuse the operations, if the values are immutable?
- moomin 13y agoWell, there's two ways to do that in Clojure: write your own list processing (usually regarded as bad style) or use reducers. Both are appropriate in specific instances, but the fact remains that the lazy seq code above is the idiomatic way of doing it in Clojure. So the _default_ way of doing it is slower than LINQ's default way of doing things. It wouldn't be hard to make LINQ behave like Clojure, either.