
I found it useful to work through an example where lazy evaluation was
important, and wrote it up in a tutorial. It may or may not help you,
no guarantees, but here it is:
http://www.haskell.org/haskellwiki/Haskell/Lazy_Evaluation
Any comments are welcome!
Andrew
On 2/4/07, TJ
I would think that with 100% laziness, nothing would happen until the Haskell program needed to output data to, e.g. the console. Quite obviously that's not it. So how is laziness defined in Haskell?
I remember vaguely someone saying that pattern matching on a value forces it to be evaluated. Is that right? What else?
This is one of the things that just boggles my mind everytime I try to wrap it around this thing called Haskell ;)
Cheers,
TJ _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe