Op Assignment op= of a value (e.g. a number) to a fully defined slice.
import mir.ndslice.allocation; auto a = slice!int(2, 3); a[] += 1; assert(a == [[1, 1, 1], [1, 1, 1]]); a[0..$, 0..$-1] += 2; assert(a == [[3, 3, 1], [3, 3, 1]]); a[1, 0..$-1] += 3; assert(a[1] == [6, 6, 1]);
See Implementation
Op Assignment op= of a value (e.g. a number) to a fully defined slice.