On Sunday, 16 November 2014 at 14:16:55 UTC, Artem Tarasov wrote:
writefln("%(%s-%)", ["a", "b", "c"]) doesn't print the intended a-b-c but surrounds each string with double quotes - "a"-"b"-"c", which I find inconsistent with the fact that writefln("%s", "a string") prints the string without any quotes.
How do I get the desired behaviour using just the format string?

writefln("%-(%s-%)", ["a", "b", "c"])

http://ddili.org/ders/d.en/formatted_output.html

Reply via email to