pkg/adt/interval_tree.go
func (ivt *IntervalTree) find(ivl Interval) (ret *intervalNode) {
	f := func(n *intervalNode) bool {
		if n.iv.Ivl != ivl {
			return true
		}
		ret = n
		return false
	}
	ivt.root.visit(&ivl, f)
	return ret
}
func (ivt *IntervalTree) find(ivl Interval) (ret *intervalNode) {
	f := func(n *intervalNode) bool {
		if n.iv.Ivl != ivl {
			return true
		}
		ret = n
		return false
	}
	ivt.root.visit(&ivl, f)
	return ret
}
func ( ivt * IntervalTree ) find ( ivl Interval ) ( ret * intervalNode ) { f := func ( n * intervalNode ) bool { if n . iv . Ivl != ivl { return true } ret = n return false } ivt . root . visit ( & ivl , f ) return ret }
// find the exact node for a given interval
find the exact node for a given interval