Re:Learning Clojure: comparing with Java streams
by zmmmmm on Sunday November 04, 2018 @09:59PM
(#18379550)
Out of curiosity, can anybody comment whether the Clojure versions of these are "lazy" in the sense that if you only take the first element from the result, does the the stream process all the results or just the first? eg:
Does it map all the elements or only the first? This is actually the key aspect of streams, and more important in many ways than whatever syntax sugar is available to invoke the operations.
[ Parent
| on HN ]