On Monday, 8 July 2013 at 12:41:22 UTC, John Colvin wrote:
The i++ in to!string not having any effect is rather surprising, I agree.
Scratch that, there's nothing surprising about it at all. i == 0 on the first iteration and therefore the first branch of the ternary isn't executed. The same thing happens the next iteration and so on, leaving i==0 for every iteration.
