> 1- concat is defined to have 4 different arities: 0-arg, 1-arg, 2-arg,
> 3+args. In order to figure out which arity to use, apply has to realize at
> least as many elements as the minimum number of args required by the
> largest arity, which in this case is 3
> 2- apply has a small bug that causes it to realize one element more than
> necessary, in this case making it realize 4 elements rather than 3, here's
> a ticket with a patch fixing that issue:
> http://dev.clojure.org/jira/browse/CLJ-1583
>
>
Thx for the explanation. In my original code, I have a "lazy" sequence of a
size determined by specified in the content and the entire thing read of
I/O without a way of telling that I/O is closed. "read" function hangs and
blocks the code if performed too many times.

I redesigned my code to avoid that combination.

Best,
Andy

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