Closed iSplasher closed 1 year ago
I think functions like these are useful
export default class IntervalTree<T = any> extends BaseIntervalTree<T> { removeInterval(interval: [number, number]) { let search_node = new Node(interval); let resp_nodes = []; this.tree_search_interval(this.root, search_node, resp_nodes); for (let n of resp_nodes ) { this.tree_delete(n); } return resp_nodes as Node<T>[]; } clear() { this.root = null; } }
.clear() would be very helpful
Added method clear version v1.0.19
I think functions like these are useful