Not even this works (in which I try to avoid state mutation):

(def primes (cons 2 (lazy-seq (filter #(prime? primes %) (drop 3 
(range))))))



Em quinta-feira, 12 de fevereiro de 2015 23:26:03 UTC-2, Fluid Dynamics 
escreveu:
>
> AFAICT the issue here is combining lazy evaluation with state mutation. 
> Don't do that. :)
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to