At Fri, 05 Jan 2007 20:59:16 -0800,
Mike Gunter wrote:
> 
> 
> >
> > pps. I didn't explain why [1..1000000] works, but [1..] fails, because
> > I don't know :) It's a bit suprising to me...
> 
> With [1..1000000], the generated values have to be tested against
> 1000000 as you go.  So, they get evaluated.  In the [1..] case,
> they don't.

Ah, that makes a lot of sense. Thanks!

j.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to