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