On Monday, 22 July 2013 at 12:51:31 UTC, Andrej Mitrovic wrote:
On 7/22/13, JS <[email protected]> wrote:foreach doesn't allow you to modify the index to skip over elements.It does: ----- import std.stdio; void main() { int[] x = [1, 2, 3, 4, 5]; foreach (ref i; 0 .. 5) { writeln(x[i]); ++i; } } ----- Writes: 1 3 5
Cool... This should make life easier! Thanks.
