Skip to content

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

Open
@devurandom

Description

@devurandom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions