operator [] method

E operator [](
  1. int index
)

Access item by index.

Implementation

E operator [](int index) => val[index];