Concat enum of strings into one string

Andrey saasecondbox at yandex.ru
Wed Aug 15 11:01:02 UTC 2018


On Tuesday, 14 August 2018 at 16:03:05 UTC, vit wrote:
> import std.traits : EnumMembers;
> import std.string : join;
> import std.algorithm : map;
>
> pragma(msg, [EnumMembers!Type].map!(x => cast(string)x).join(" 
> "));

Thank you!

Jonathan M Davis, I understood.


More information about the Digitalmars-d-learn mailing list