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 positive integer
Complexity: O(1).
a reference to the element found at idx.
auto a = Array!int([1, 2, 3]); a[2] = 2; assert(a[2] == 2); (a[2] = 3)++; assert(a[2] == 4);
See Implementation
Assign elem to the element at idx in the array. idx must be less than length.