
14 Dec
2008
14 Dec
'08
1:51 a.m.
On Sun, 2008-12-14 at 19:46 +1300, George Pollard wrote:
On Sun, 2008-12-14 at 00:35 -0500, Adam Vogt wrote:
On another note, is there much use of such simple library functions: does concatMap, for instance, save anything other than a couple parantheses, or does (concat . map) not necessarily get optimized into the same thing
Bart Massey’s results suggest very little difference: http://wiki.cs.pdx.edu/forge/concatmap.html
(Yellow blobs + green crosses.)
I should have said that, on the other hand, with stream fusion enabled, (concat . map) outperforms (concatMap) :) - George