Returns self after removing the interval and balancing. If interval is not present, raise ValueError.
(self, interval)
| 220 | return self.rotate() |
| 221 | |
| 222 | def remove(self, interval): |
| 223 | """ |
| 224 | Returns self after removing the interval and balancing. |
| 225 | |
| 226 | If interval is not present, raise ValueError. |
| 227 | """ |
| 228 | # since this is a list, called methods can set this to [1], |
| 229 | # making it true |
| 230 | done = [] |
| 231 | return self.remove_interval_helper(interval, done, should_raise_error=True) |
| 232 | |
| 233 | def discard(self, interval): |
| 234 | """ |