On Friday, 5 October 2018 at 06:22:57 UTC, Nicholas Wilson wrote:
tenRandomNumbers.each!((n,o) => o.appendln(n.to!string))(output);

or

tenRandomNumbers.each!((n, ref o) => o.appendln(n.to!string))(output);

should hopefully do the trick (run.dlang.io seems to be down atm).


Alas is does not because each does not accept additional argument other than the range. Shouldn't be hard to fix though.

Reply via email to