String Join
From Erlang Community
Problem
You need to combine several strings into a larger string.
Solution
The built-in concatenation operator (++) is the de-facto answer here:
1> "Some " ++ "text " ++ "and" ++ " stuff". "Some text and stuff" |
You can also use the lists:append function:
2> lists:append(["Some ", "text ", "and", " stuff"]). "Some text and stuff" |
++ and lists:append will always allocate a new string.

Digg It
Del.icio.us
Reddit
Facebook
Stumble Upon
Technorati

