Re: efficiency question

2002-02-09 Thread Jorge Adriano
On Saturday 09 February 2002 11:38, Jorge Adriano wrote: If you make it strict on the (,), like:  test3 l =      let s = foldr (\x (a,b) - ((,)$!x+a)$!x-b) (1,1) l      in  s Things will get worst. Well, that's what I expected, the elements of the list will b reduced to head normal form,

Re: efficiency question

2002-02-08 Thread Jorge Adriano
I'd say that's because in the second case you also got to apply the (,), besides the (+)/(-) constructor during the transversing... Am I right? opss... I meant to write: the (,) constructor besides the (+)/(-)... J.A. ___ Haskell-Cafe mailing list

RE: efficiency question

2002-02-08 Thread Konst Sushenko
more stack if not because of laziness? konst -Original Message- From: Hal Daume III [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:35 PM To: Jorge Adriano Cc: Konst Sushenko; [EMAIL PROTECTED] Subject: Re: efficiency question I agree that it's the overhead