[Haskell-cafe] Re: Processing of large files

Alexander Kogan alexander at kogan.nnov.ru
Thu Nov 4 02:37:25 EST 2004


> How about this?
>   let a' = addToFM_C (+) a x 1 in
>       maybe () (`seq` ()) (lookupFM a' x) `seq` a'
> It worked for me.

Thank you. It works for me too, but I don't understand why and how ;-))
Could you explain?

Alexander Kogan
Institute of Applied Physics
Russian Academy of Sciences

More information about the Haskell-Cafe mailing list