[Haskell-cafe] Re: Processing of large files
t.zielonka at students.mimuw.edu.pl
Thu Nov 4 03:45:13 EST 2004
On Thu, Nov 04, 2004 at 08:03:56AM +0100, Tomasz Zielonka wrote:
> How about this?
> let a' = addToFM_C (+) a x 1 in
> maybe () (`seq` ()) (lookupFM a' x) `seq` a'
> It worked for me.
Of course, it is quite inefficient. If you care about constant factors,
better use a FiniteMap with strict operations, like Hal's.
.signature: Too many levels of symbolic links
More information about the Haskell-Cafe