operator [] method

T operator [](
  1. int index
)

Operator overload for random access.

Implementation

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