Re: for not returning a lazy sequence

2011-05-21 Thread Christophe Grand
Clojure lazy sequences aren't required to be strictly lazy. Items can be computed in batches (chunks). It depends whether you source seq is chunked or not and whether your seq fns are chunk-aware or not. #'range produces a chunked seq. See (chunked-seq? (seq (range 42))). That's most certainly wh

Re: for not returning a lazy sequence

2011-05-20 Thread Jarl Haggerty
I just remembered that people always ask me what version of clojure I'm using, 1.3.0-master-SNAPSHOT. On May 20, 9:41 pm, Jarl Haggerty wrote: > I'm working on problem 66 at project euler and this is my solution so > far.  It calculates the minimum "x"s just fine but takes almost a > minute when

for not returning a lazy sequence

2011-05-20 Thread Jarl Haggerty
I'm working on problem 66 at project euler and this is my solution so far. It calculates the minimum "x"s just fine but takes almost a minute when I turn limit up to 20. It's not going to solve the problem fast enough but what I find strange it that if I set the limit to 20 then nothing happens f