Removes intervals from self unless they also exist in other.
(self, other)
| 436 | return IntervalTree(ivs) |
| 437 | |
| 438 | def intersection_update(self, other): |
| 439 | """ |
| 440 | Removes intervals from self unless they also exist in other. |
| 441 | """ |
| 442 | ivs = list(self) |
| 443 | for iv in ivs: |
| 444 | if iv not in other: |
| 445 | self.remove(iv) |
| 446 | |
| 447 | def symmetric_difference(self, other): |
| 448 | """ |