NewIntervalTree creates a new interval tree.
()
| 40 | |
| 41 | // NewIntervalTree creates a new interval tree. |
| 42 | func NewIntervalTree() *IntervalTree { |
| 43 | return &IntervalTree{} |
| 44 | } |
| 45 | |
| 46 | // Insert adds an interval to the tree. |
| 47 | // Returns true if the interval was added, false if it was a duplicate. |
no outgoing calls