Since the REPL tries to print out the lazy sequence it ends up forcing evaluation as well.
If you do something like (def foo (some-lazy-seq)) in the repl it won't get forcibly realized as before. This is a very common source of misconception, you're not alone :) Regards, BG On Tue, Jul 31, 2012 at 6:07 PM, Pierre-Henry Perret <phper...@gmail.com> wrote: > mapv do the eval. > > Should be a reflex: when something works in the repl, but not in the > code...it's lazy ! -- Baishampayan Ghose b.ghose at gmail.com -- 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