The error says the type is clojure.lang.PersistentVector and not lazyseq. I know very little about this, but I think (map) is returning a lazyseq, but the anonymous function inside of reduce is returning a clojure.lang.PersistentVector.
On Wednesday, March 27, 2013 3:23:21 PM UTC-4, John Lawrence Aspden wrote: > > Hi, > > Laziness makes my head hurt. > > Is there any reason this is desirable behaviour?: > > user=> (clojure-version) > "1.4.0" > > user=> (reduce (fn [a b] (map + [1 1] a)) [1 1] (range 1000)) > (1001 1001) > > user=> (reduce (fn [a b] (map + [1 1] a)) [1 1] (range 1500)) > StackOverflowError clojure.lang.PersistentVector$ChunkedSeq.<init> > (PersistentVector.java:257) > > > John. > -- -- 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/groups/opt_out.