isInRange method

bool isInRange(
  1. int index
)

Implementation

bool isInRange(int index) {
  return isValid && index >= start && index < end;
}