R Another interesting thing I've discovered is:
Prelude length [1..100]
R 100
Prelude Data.List.genericLength [1..100]
R *** Exception: stack overflow
R Maybe there is something wrong with Integer ?
No, there is something wrong with genericLength:
Prelude Data.List.foldl (+) 0 $
A friend of mine compiled it under Linux and got:
.
.
.
32779 : 1 1 ---32776-- 0
32780 : 1 0 ---32777-- -1
Main: Ix{Integer}.index: Index (32766) out of range ((0,32765))
If I convert every Integer into Int and use instead of the generic list
functions the prelude-list functions,
On Wed, 4 Jul 2007, Rome wrote:
A friend of mine compiled it under Linux and got:
.
.
.
32779 : 1 1 ---32776-- 0
32780 : 1 0 ---32777-- -1
Main: Ix{Integer}.index: Index (32766) out of range ((0,32765))
If I convert every Integer into Int and use instead of the generic