Interval implements a Comparable interval [begin, end) TODO: support different sorts of intervals: (a,b), [a,b], (a, b]
| 51 | // Interval implements a Comparable interval [begin, end) |
| 52 | // TODO: support different sorts of intervals: (a,b), [a,b], (a, b] |
| 53 | type Interval struct { |
| 54 | Begin Comparable |
| 55 | End Comparable |
| 56 | } |
| 57 | |
| 58 | // Compare on an interval gives == if the interval overlaps. |
| 59 | func (ivl *Interval) Compare(c Comparable) int { |
nothing calls this directly
no outgoing calls
no test coverage detected