How about appender.put() with var args?
Nick Treleaven via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 17 04:23:21 PDT 2015
On 16/04/2015 18:25, Nick Treleaven wrote:
> I think this works:
>
> import std.range : only;
> app.put(only("foo", var, "bar"));
OK, that doesn't work, and an array doesn't either (which was my
assumption):
app.put(["foo", var, "bar"]); // NG
If it had, I thought only might be more efficient than chain, but I
could be wrong.
More information about the Digitalmars-d
mailing list