Assign elem to the element at idx in the array. idx must be less than length.
an element that is implicitly convertible to T
a reference to the element found at idx.
import std.algorithm.comparison : equal; auto a = Array!int([1, 2, 3, 4, 5, 6]); a[1 .. 3] = 0; assert(a.equal([1, 0, 0, 4, 5, 6]));
See Implementation
Assign elem to the element at idx in the array. idx must be less than length.