n-dimensional slice
import mir.ndslice.topology : iota; auto data = new int[24]; foreach (i, ref e; data) e = cast(int)i; auto a = data[0..10].sliced(10)[0..6].sliced(2, 3); auto b = iota!int(10)[0..6].sliced(2, 3); assert(a == b); a[] += b; foreach (i, e; data[0..6]) assert(e == 2*i); foreach (i, e; data[6..$]) assert(e == i+6);
Creates an n-dimensional slice-shell over the 1-dimensional input slice.