tags:

views:

187

answers:

1

Hi, I need the join function to add separators between the members of a list. I found this function in Data.List.Utils and Data.String.Utils. Unfortunately, those modules doesn't seem to be part of the standard platform.
As it's a quite standard function, I'm pretty sure it should be somewhere in the standard platform , maybe with an other name.

Any idea ?

Update

I have found the solution (but can't accept my answer, I have to wait for 2 days ???)

+12  A: 

I found it (thanks Hoogle), it's called intercalate.

mb14
wow. I kept on writing my own function that did the exact same thing. It is a good name but it needs to be better advertised.
Robert Massaioli