
12 Nov
2012
12 Nov
'12
7:44 a.m.
* Henning Thielemann
In case your accumulator is a Map you really want to use foldl'.
Why not a deepseq foldl'?
First, you may actually want your Map to contain lazy values. Second, you may know that your values are already evaluated, so deepseq is just a waste of time. deepseq is far from being cheap, since it has to traverse the whole structure, regardless of what has been already evaluated. Roman