operator [] method

Object? operator [](
  1. int i
)

Operator access

Implementation

Object? operator [](int i) {
  if (i == 0)
    return first;
  else if (i == 1) return second;
  throw IndexError(i, this);
}