Added FindIntervalsForValue. Function renaming.

This commit is contained in:
Daniel Gil
2018-05-24 14:51:00 +02:00
parent 21187ac4df
commit 7255f129f5
3 changed files with 64 additions and 87 deletions

View File

@@ -9,7 +9,7 @@ type Interval struct {
}
func (itvl Interval) String() string {
return fmt.Sprintf("(%v, %v) -> [%v]", itvl.Low, itvl.High, itvl.Object)
return fmt.Sprintf("(%v, %v)", itvl.Low, itvl.High)
}
// ByLow implements sort.Interface for []Interval based on the Low field.