Is a merge interval function available?

Peng Yu pengyu.ut at
Thu Feb 11 00:23:42 CET 2010

I'm wondering there is already a function in python library that can
merge intervals. For example, if I have the following intervals ('['
and ']' means closed interval as in

[1, 3]
[2, 9]

I want to get the following merged intervals.


Could somebody let me know if there is a function in the python

More information about the Python-list mailing list