Gets the element at the given index, extending with shallow copies if out of bounds.
Element type.
The array.
Non-negative index.
Template for new entries (shallow-copied).
The element at index.
index
If index is negative.
Gets the element at the given index, extending with shallow copies if out of bounds.