In Core Functions in Depth, you introduce lazy-seq:
(defn even-numbers
([] (even-numbers 0))
([n] (cons n (lazy-seq (even-numbers (+ n 2))))))
It would help the understanding, if you mentioned, that it is a macro and thus does not follow regular evaluation semantics.
In Core Functions in Depth, you introduce
lazy-seq:It would help the understanding, if you mentioned, that it is a macro and thus does not follow regular evaluation semantics.