Assign to the element at idx in the array the result of a[idx] op elem. 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] == 5); (a[2] += 3)++; assert(a[2] == 9);
See Implementation
Assign to the element at idx in the array the result of a[idx] op elem. idx must be less than length.