Correction on merge. Added Get. Added example.

This commit is contained in:
Daniel Gil
2018-05-29 10:10:33 +02:00
parent 01cb3ccd23
commit 6fdaa341ff
7 changed files with 259 additions and 8 deletions

View File

@@ -19,6 +19,9 @@ type Intervals interface {
// HasGaps returns true if exists gaps for the introduced intervals between MinLow and MaxHigh
HasGaps() bool
// Get first sorts (if necessary) and then returns the interval list
Get() []*Interval
// Gaps first sorts (if necessary) and then returns the interval gaps
Gaps() []*Interval