equivalent of python join?

CJS Prometheus85 at hotmail.com
Mon Dec 2 22:36:27 PST 2013


In python a common performance tip for joining many strings 
together is to use the join method. So, for example, instead of
"a" + "b" + "c"
use
''.join(["a","b","c"]).
The idea is to avoid creating temporary objects that are 
immediately thrown away. It's obviously overkill for such a small 
number of strings, though.

Is there any equivalent method/advice when concatenating many 
strings together in D?


More information about the Digitalmars-d-learn mailing list