brave-clojure-web
brave-clojure-web copied to clipboard
Core Functions in Depth - mention that lazy-seq is a macro
trafficstars
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.