Re: Ground Up

2002-03-03 Thread Max Kirillov
You're right with this (and the rest too). In did not pretend to play an expert. I just shared my impression. Anyway, I think there are many reasons to learn functional programming first, and then haskell as an implementation. Max. On Fri, Mar 01, 2002 at 12:47:34AM -0800, Simon Peyton-Jones

Lazy Evaluation

2002-03-03 Thread Nguyen Phan Dung
Hello, Sorry for asking such a silly question: Haskell is using lazy evaluation. So, it means we should be able to declare and use a list of billions elements without any trouble. So I declare my list as follow: mylist :: [Integer] mylist = [1..10] In Hugs, I type

Lazy Evaluation

2002-03-03 Thread Tom Pledger
Nguyen Phan Dung writes: : | mylist :: [Integer] | mylist = [1..10] | | In Hugs, I type mylist to print out all the elements inside. However, | after printing about 22000 elements, the system crashs outputs: | Garbage collection fails to reclaim sufficient memory The declaration