If you are going to change it, why not `foreach (i; 0 .. n)` ?