Function multiline

Use this to create a multiline string out of literals, vars, and unary functions that return strings

string multiline(Strings...)()
if (allOfString!Strings);

Parameters

NameDescription
Strings list of string to concat, each arg is a new line

Since

- 0.10.0

Example

static string var = "booya";
static string func() { return var; }

assert(
    multiline!(
        "this is a multiline string that",
        "  spans multiple lines yo!",
        var,
        func
    ) == "this is a multiline string that\n  spans multiple lines yo!\nbooya\nbooya"
);