Implements by-element iteration with inidces starting from the top dimension.
auto matrix = multidimArray!int(2, 3, 4); foreach(z, y, x, ref el; matrices) el = z * 100 + y * 10 + x;
See Implementation
Implements by-element iteration with inidces starting from the top dimension.