initialization immutable array
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 16 08:32:16 PDT 2014
monarch_dodra:
> That's also why I've stopped using "writeln()" as UFCS: It
> "looks" convenient at first, but then you want to turn those
> "writeln" into "writefln", and that's when things don't go
> according to plan...
Yes, I understand.
If you want some ugly code you can use
std.functional.binaryReverseArgs:
alias flip = binaryReverseArgs;
myRange.flip!writefln("%s")
bye,
bearophile
More information about the Digitalmars-d
mailing list