Added inclusive / exclusive functionality

This commit is contained in:
Daniel Gil
2018-05-29 16:08:17 +02:00
parent 6fdaa341ff
commit 6702d50231
12 changed files with 345 additions and 67 deletions

3
get.go
View File

@@ -1,6 +1,9 @@
package interval
func (intvls *intervals) Get() []*Interval {
// sort intervals (if necessary)
intvls.Sort()
// return the intervals sorted
return intvls.Intervals
}