
27 Sep
2010
27 Sep
'10
8:41 a.m.
Am 24.09.2010 19:50, schrieb Daniel Fischer: [...]
prependToAll s xs = s : intersperse s xs
Those are of course a bit silly if intersperse is defined in terms of prependToAll.
But I don't see where one would need that function, so I'm hesitating to propose changing the API of Data.List. If you have use cases, I would probably support it.
You're right. Including prependToAll is unnecessary. After all we just want to fix a space leak in intersperse (with or without lokal worker). +1 for your proposal http://hackage.haskell.org/trac/ghc/ticket/4282 Christian