Hi
I should have said that, on the other hand, with stream fusion enabled,
(concat . map) outperforms (concatMap) :)
That can only be a bug in stream fusion - concatMap should always be prefered!
Thanks
Neil
___
Haskell-Cafe mailing list
On Mon, 2008-12-15 at 08:40 +, Neil Mitchell wrote:
That can only be a bug in stream fusion - concatMap should always be prefered!
Yes, but it is unclear from the article whether the concatMap (w/ stream
fusion enabled) is Data.List.Stream's concatMap or the Prelude's
concatMap. It's only a
Today yet another newbie in #haskell asked about a 'split' function
for lists, and I got fed up with saying 'no one can agree on the right
interface so it doesn't exist, just write it yourself', because it's a
really dumb answer, even if it's true.
Instead of trying to get a 'split' function
A very nice initiative I must say; although the page should contain
the usual explanation for why such a split method can't be universal.
That is, add the same explanation you give every time; but to the
page.
/Gianfranco
On Sat, Dec 13, 2008 at 5:30 PM, Brent Yorgey byor...@seas.upenn.edu
On Sat, Dec 13, 2008 at 05:39:55PM +0100, Gianfranco Alongi wrote:
A very nice initiative I must say; although the page should contain
the usual explanation for why such a split method can't be universal.
That is, add the same explanation you give every time; but to the
page.
Good idea; I've
I have actually been thinking about a similar thing, but on the group subject.
One can actually group things in many ways, such as groupBy (==) , so
that groupBy (==) [1,2,1,2] should give
[[1,1],[2,2]]. Of course other ideas are possible.
On Sat, Dec 13, 2008 at 5:47 PM, Brent Yorgey
* On Saturday, December 13 2008, Gianfranco Alongi wrote:
I have actually been thinking about a similar thing, but on the group
subject.
One can actually group things in many ways, such as groupBy (==) , so
that groupBy (==) [1,2,1,2] should give
[[1,1],[2,2]]. Of course other ideas are
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
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