Versions in this module Expand all Collapse all v0 v0.0.25 Feb 18, 2024 Changes in this version + type Interval interface + Contains func(value T) bool + Difference func(other Interval[T]) Interval[T] + Enumerate func(step T) []T + Equals func(other Interval[T]) bool + IncludeLR func() (bool, bool) + Intersection func(other Interval[T]) Interval[T] + Intervals func() []Interval[T] + IsEmpty func() bool + IsSingleton func() bool + Max func() T + Min func() T + Overlaps func(other Interval[T]) bool + Union func(other Interval[T]) Interval[T] + func NewClosed[T constraints.Ordered](min, max T) Interval[T] + func NewInterval[T constraints.Ordered](min T, includeMin bool, max T, includeMax bool) Interval[T] + func NewLOpen[T constraints.Ordered](min, max T) Interval[T] + func NewMerged[T constraints.Ordered](intervals ...Interval[T]) Interval[T] + func NewNull[T constraints.Ordered]() Interval[T] + func NewOpen[T constraints.Ordered](min, max T) Interval[T] + func NewROpen[T constraints.Ordered](min, max T) Interval[T] + func NewSingleton[T constraints.Ordered](v T) Interval[T] + type LOpenInterval [2]T + func (loi LOpenInterval[T]) Contains(value T) bool + func (loi LOpenInterval[T]) Difference(other Interval[T]) Interval[T] + func (loi LOpenInterval[T]) Enumerate(step T) []T + func (loi LOpenInterval[T]) Equals(other Interval[T]) bool + func (loi LOpenInterval[T]) IncludeLR() (bool, bool) + func (loi LOpenInterval[T]) Intersection(other Interval[T]) Interval[T] + func (loi LOpenInterval[T]) Intervals() []Interval[T] + func (loi LOpenInterval[T]) IsEmpty() bool + func (loi LOpenInterval[T]) IsSingleton() bool + func (loi LOpenInterval[T]) Max() T + func (loi LOpenInterval[T]) Min() T + func (loi LOpenInterval[T]) Overlaps(other Interval[T]) bool + func (loi LOpenInterval[T]) Union(other Interval[T]) Interval[T] + type MergedIntervals []Interval[T] + func (ni MergedIntervals[T]) Boundaries() []T + func (ni MergedIntervals[T]) Contains(value T) bool + func (ni MergedIntervals[T]) Difference(other Interval[T]) Interval[T] + func (ni MergedIntervals[T]) Enumerate(step T) []T + func (ni MergedIntervals[T]) Equals(other Interval[T]) bool + func (ni MergedIntervals[T]) IncludeLR() (bool, bool) + func (ni MergedIntervals[T]) Intersection(other Interval[T]) Interval[T] + func (ni MergedIntervals[T]) Intervals() []Interval[T] + func (ni MergedIntervals[T]) IsEmpty() bool + func (ni MergedIntervals[T]) IsSingleton() bool + func (ni MergedIntervals[T]) Max() T + func (ni MergedIntervals[T]) Min() T + func (ni MergedIntervals[T]) Overlaps(other Interval[T]) bool + func (ni MergedIntervals[T]) Union(other Interval[T]) Interval[T] + type OpenInterval [2]T + func (oi OpenInterval[T]) Contains(value T) bool + func (oi OpenInterval[T]) Difference(other Interval[T]) Interval[T] + func (oi OpenInterval[T]) Enumerate(step T) []T + func (oi OpenInterval[T]) Equals(other Interval[T]) bool + func (oi OpenInterval[T]) IncludeLR() (bool, bool) + func (oi OpenInterval[T]) Intersection(other Interval[T]) Interval[T] + func (oi OpenInterval[T]) Intervals() []Interval[T] + func (oi OpenInterval[T]) IsEmpty() bool + func (oi OpenInterval[T]) IsSingleton() bool + func (oi OpenInterval[T]) Max() T + func (oi OpenInterval[T]) Min() T + func (oi OpenInterval[T]) Overlaps(other Interval[T]) bool + func (oi OpenInterval[T]) Union(other Interval[T]) Interval[T] + type ROpenInterval [2]T + func (roi ROpenInterval[T]) Contains(value T) bool + func (roi ROpenInterval[T]) Difference(other Interval[T]) Interval[T] + func (roi ROpenInterval[T]) Enumerate(step T) []T + func (roi ROpenInterval[T]) Equals(other Interval[T]) bool + func (roi ROpenInterval[T]) IncludeLR() (bool, bool) + func (roi ROpenInterval[T]) Intersection(other Interval[T]) Interval[T] + func (roi ROpenInterval[T]) Intervals() []Interval[T] + func (roi ROpenInterval[T]) IsEmpty() bool + func (roi ROpenInterval[T]) IsSingleton() bool + func (roi ROpenInterval[T]) Max() T + func (roi ROpenInterval[T]) Min() T + func (roi ROpenInterval[T]) Overlaps(other Interval[T]) bool + func (roi ROpenInterval[T]) Union(other Interval[T]) Interval[T]