operator [] method

Rule operator [](
  1. int index
)
Gets the rule at the specified index in the collection. The index of the rule to get.

Implementation

Rule operator [](int index) {
  if (index < 0 || index >= rules.length) {
    throw RangeError.range(index, 0, rules.length - 1, "Index");
  }
  return rules[index];
}