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_arrayAdd intervals from arrays
AIList.constructConstruct AIList, required to call AIList.intersect
AIList.intersectFind 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)