
1 Oct
2004
1 Oct
'04
2:48 a.m.
Ketil Malde
wc :: !(Int,Int,Int) -> Char -> (Int, Int, Int)
I'm not sure if that was your question
Sorry about that, brain malfunction, bangs are for data declarations, I'll get that cup of coffee now. I guess what you really want to do, is to put some `seq`s in there. Something like: wc (cs,ws,ls) ... = cs `seq` ws `seq` ls `seq` ...the def. of wc... which evaluates the Ints before doing anything else. Or use (!$) (like function application ($), but strict). -kzm -- If I haven't seen further, it is by standing in the footprints of giants