contains method

bool contains(
  1. int begin
)

Implementation

bool contains(int begin) => this.begin <= begin && end > begin;