(s)
| 26623 | return !(this.high < s.low || this.low > s.high) |
| 26624 | } |
| 26625 | touches(s) { |
| 26626 | return !(this.high + 1 < s.low || this.low - 1 > s.high) |
| 26627 | } |
| 26628 | add(s) { |
| 26629 | return new SubRange(Math.min(this.low, s.low), Math.max(this.high, s.high)) |
| 26630 | } |