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, and instead of a suspension of (%), you'll have a
suspension of sums in the fst element of the pair *and* a suspension of
differences in the second element of the pair.
Eh... no need to comment on this one... this was kind of dumb. Forget it...
:-)
J.A.
___
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe