operator [] method

T operator [](
  1. int index
)

Returns the index element.

Implementation

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