Names for small functions: just say no... Re: Data.List.join

Ross Paterson ross at soi.city.ac.uk
Sat Oct 28 13:51:15 EDT 2006


On Fri, Oct 27, 2006 at 05:56:55PM +0200, Josef Svenningsson wrote:
> My argument for intercalate builds on the fact that intersperse seems
> to be the wrong abstraction. Recall that I supplied some evidence that
> intersperse is only used together with concat:
> http://www.google.com/codesearch?q=file%3A%5C.hs+intersperse&btnG=Search+Code
> 
> Except for pretty printing, intersperse always comes together with
> concat.

It's also useful with foldr (.) id when showing things.



More information about the Libraries mailing list