Iterating over array via foreach_reverse.
Array!(int,4) arr; scope(exit) arr.free(); int[4] values; arr.insertBack([1,2,3,4]); foreach(i, ref val; arr) { values[i] = val; if(values[i] == 4) { break; } } assert(values[] == arr.data);
See Implementation
Iterating over array via foreach_reverse.