Consider the following code in clojure:
(let [a (find-a), b (find-b)] (println a) (println b))
Where b is the sequence. The find-a function also has some println statements. What I expect to see on standard outputs: a, results from println statements in find-a, b. However, I get: a, part b, the results from println statements in find-a, the rest of b.
Is this due to lazy sequence estimation?
source
share