Holding on to the head would result in a out of memory error, not a stack
overflow. IIRC this was a bug that was fixed in 1.5 (I'll try to find the
JIRA ticket). Anyways, it works in 1.5.1:

user=> (clojure-version)
"1.5.1"
user=> (reduce (fn [a b] (map + [1 1] a)) [1 1] (range 1500))
(1501 1501)
user=>


On Wed, Mar 27, 2013 at 1:48 PM, Michael Klishin <
michael.s.klis...@gmail.com> wrote:

>
> 2013/3/27 larry google groups <lawrencecloj...@gmail.com>
>
>> The error says the type is clojure.lang.PersistentVector and not lazyseq
>>
>
> The error says it is clojure.lang.PersistentVector$ChunkedSeq. You can
> learn
> more about what chunking is for in
> http://clojure-doc.org/articles/language/laziness.html.
>
> Something in this code holds on to the seq's head.
> --
> MK
>
> http://github.com/michaelklishin
> http://twitter.com/michaelklishin
>
> --
> --
> 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.
>
>
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
-- 
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.


Reply via email to