include method

bool include(
  1. int index
)

是否包含某个下标

Implementation

bool include(int index) {
  return !isEmpty && index >= sectionBegin && index <= sectionEnd;
}