ailist.AIList.add#
- AIList.add(self, int start, int end, id_value=None)#
Add an interval to AIList inplace
- Parameters:
- Returns:
None
See also
AIList.from_array
Add intervals from arrays
AIList.construct
Construct AIList, required to call AIList.intersect
AIList.intersect
Find intervals overlapping given range
Examples
>>> from ailist import AIList >>> ail = AIList() >>> ail.add(1, 2) >>> ail.add(3, 4) >>> ail.add(3, 6) >>> ail AIList range: (1-6) (1-2, 0) (3-4, 1) (3-6, 2)