Append array of strings in d
1 answer
Yes, use std.array.join
:
import std.array, std.stdio;
void main()
{
auto x = ["a", "b", "c"];
writeln(x.join("--"));
}
Note that the order of D's arguments is different compared to Python.
+6
source to share