brave-clojure-web icon indicating copy to clipboard operation
brave-clojure-web copied to clipboard

Core Functions in Depth - mention that lazy-seq is a macro

Open devurandom opened this issue 9 years ago • 0 comments
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.

devurandom avatar Apr 10 '16 10:04 devurandom