Yes there are :
Prelude> import Data.List Prelude Data.List> intercalate " " ["is","there","such","a","function","?"] "is there such a function ?"
intersperse is more general:
Prelude> import Data.List Prelude Data.List> concat (intersperse " " ["is","there","such","a","function","?"]) "is there such a function ?"
In addition, for the specific case when you want to join a whitespace, there are unwords :
Prelude> unwords ["is","there","such","a","function","?"] "is there such a function ?"
unlines works similarly, only lines are inserted using a newline character (and for some reason a newline is added at the end too).
Niklas B. Feb 10 2018-12-12T00: 00Z
source share