Part of bzrlib
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 27 | Function | intersect | Given two ranges return the range where they intersect or None. |
| 49 | Function | compare_range | Compare a[astart:aend] == b[bstart:bend], without slicing. |
| 63 | Class | Merge3 | 3-way merge of texts. |
| 449 | Function | main | Undocumented |
Given two ranges return the range where they intersect or None.
>>> intersect((0, 10), (0, 6)) (0, 6) >>> intersect((0, 10), (5, 15)) (5, 10) >>> intersect((0, 10), (10, 15)) >>> intersect((0, 9), (10, 15)) >>> intersect((0, 9), (7, 15)) (7, 9)