Custom separator in array format

Malte no at valid.mail
Tue Jan 28 09:05:50 UTC 2020


On Tuesday, 28 January 2020 at 08:54:16 UTC, Simen Kjærås wrote:
>     import std.stdio : writefln;
>     import std.format : format;
>     import std.algorithm : map;
>
>     auto vec = [1000, 2000, 3000];
>
>     writefln("%-(%s\t%)", vec.map!(e => format!"%,2?d"('_', 
> e)));
>

That helps, thank you very much.


More information about the Digitalmars-d-learn mailing list