operator [] method

T operator [](
  1. int index
)

Retrieves the element at the specified 0-based index in O(1) time.

Implementation

T operator [](int index) => get(index);