itacart.intervals.intervals_intersection
- itacart.intervals.intervals_intersection(first, second)[source]
Every position in both lists, by one merge of the two.
- Raises:
InvalidIndexError – If either is not a list of ranges of one resolution.
NonExistentCellError – If the coarser list covers an address that names no cell, which its refinement finds.
- Parameters:
- Return type:
Example
>>> a = cells_to_intervals("NE(0625/0451(1,2))") >>> b = cells_to_intervals("NE(0625/0451(2,3))") >>> intervals_to_cells(intervals_intersection(a, b)) 'NE(0625/0451(2))'