On Thursday, 25 April 2013 at 16:20:39 UTC, ixid wrote:
Doesn't binaryReverseArgs in std.functional already do this? Flip is a much, much better name though.
Though I still think write functions passing on the data would be useful, letting you avoid needless temporaries just so you can write the output of a function. It's useful for normal code as well as UFCS.
string temp = myFun(); temp.writeln; result ~= temp ~ "\n";