Assign elem to all element in the array.
an element that is implicitly convertible to T
Complexity: O(n).
a reference to itself
import std.algorithm.comparison : equal; auto a = Array!int([1, 2, 3]); a[] = 0; assert(a.equal([0, 0, 0]));
See Implementation
Assign elem to all element in the array.