> I assume that there's a good reason that iterate returns a Cons
> instead of a LazySeq.
IIUC, this particular case arises because iterate's body is implemented
as
(cons x (lazy-seq (iterate f (f x))))
rather than
(lazy-seq (cons x (iterate f (f x))))
Can anyone comment on whether there's a reason to prefer one over the
other?
--
John Mastro
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.