test method

bool test(
  1. int index,
  2. int span
)

Implementation

bool test(int index, int span) {
  return this.index <= index && this.index + this.span > index;
}