Increment ++ and Decrement -- operators for a fully defined slice.
import mir.ndslice.allocation; auto a = slice!int(2, 3); ++a[]; assert(a == [[1, 1, 1], [1, 1, 1]]); --a[1, 0..$-1]; assert(a[1] == [0, 0, 1]);
See Implementation
Increment ++ and Decrement -- operators for a fully defined slice.