Is there a function to concatenate elements of a list with a separator? For example:
> foobar \" \" [\"is\",\"there\",\"such\",\"a\",\"function\",\"?\"] [
It's not hard to write one-liner using foldr
join sep xs = foldr (\a b-> a ++ if b=="" then b else sep ++ b) "" xs join " " ["is","there","such","a","function","?"]