Data.List.join
Josef Svenningsson
josef.svenningsson at gmail.com
Sat Oct 21 09:41:34 EDT 2006
On 10/21/06, Donald Bruce Stewart <dons at cse.unsw.edu.au> wrote:
> josef.svenningsson:
> > I find that every time I use intersperse I also concat the result. And
> > it seems that I'm not alone:
> > http://www.google.com/codesearch?q=file%3A%5C.hs+intersperse&btnG=Search+Code
> > A clear majority of all the uses of intersperse also use concat on the
> > result. I think it seems worthwhile to give a name to that idiom.
>
> Oh, that's a nice trick for working out apis. Good idea!
>
Thanks!
> > The name 'join' was taken from Data.ByteString, where a similar function
> > exists.
>
> Seems reasonable. Want to submit a darcs patch, and maybe a quickcheck
> property or two?
>
Well, I do have commit rights myself so I can apply whatever we agree
on. Or did you mean that it would be nice with some public scrutiny of
the patch?
Where would the quickcheck properties go, btw?
Cheers,
Josef
More information about the Libraries
mailing list