Apply an unary operation to the element at idx in the array. idx must be less than length.
a positive integer
Complexity: O(1).
a reference to the element found at idx.
auto a = Array!int([1, 2, 3]); int x = --a[2]; assert(a[2] == 2); assert(x == 2);
See Implementation
Apply an unary operation to the element at idx in the array. idx must be less than length.