Re: Help writing a lazy version of this Choose function.

2009-04-18 Thread CuppoJava
Wow, that works great. Thanks a lot for your help Laurent. Can you think of any reason why mapcat isn't lazy by default though? I'm wondering if this is by design, or simply because we haven't had the time to update all the library functions to be fully lazy yet. -Patrick --~--~-~--~--

Re: Help writing a lazy version of this Choose function.

2009-04-18 Thread Laurent PETIT
Hello, It seems that the recursive call to choose is too eager. I had a problem with your version (which seems to be using a pre lazy-seq version) where nthrest still existed (?). But I rewrote something along the lines of what you did, and had first the same problem. Wrapping the recursive call