Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + const MaxInt + const MinInt + type Fast struct + func MakeFast(vals ...int) Fast + func (s *Fast) Add(i int) + func (s *Fast) AddRange(from, to int) + func (s *Fast) CopyFrom(other Fast) + func (s *Fast) Decode(br io.ByteReader) error + func (s *Fast) DifferenceWith(rhs Fast) + func (s *Fast) Encode(buf *bytes.Buffer) error + func (s *Fast) IntersectionWith(rhs Fast) + func (s *Fast) Remove(i int) + func (s *Fast) UnionWith(rhs Fast) + func (s Fast) Contains(i int) bool + func (s Fast) Copy() Fast + func (s Fast) Difference(rhs Fast) Fast + func (s Fast) Empty() bool + func (s Fast) Equals(rhs Fast) bool + func (s Fast) ForEach(f func(i int)) + func (s Fast) Intersection(rhs Fast) Fast + func (s Fast) Intersects(rhs Fast) bool + func (s Fast) Len() int + func (s Fast) Next(startVal int) (int, bool) + func (s Fast) Ordered() []int + func (s Fast) String() string + func (s Fast) SubsetOf(rhs Fast) bool + func (s Fast) Union(rhs Fast) Fast + type Sparse struct + func (s *Sparse) Add(i int) + func (s *Sparse) Clear() + func (s *Sparse) Copy(rhs *Sparse) + func (s *Sparse) DifferenceWith(rhs *Sparse) + func (s *Sparse) Equals(rhs *Sparse) bool + func (s *Sparse) IntersectionWith(rhs *Sparse) + func (s *Sparse) Intersects(rhs *Sparse) bool + func (s *Sparse) LowerBound(startVal int) int + func (s *Sparse) Min() int + func (s *Sparse) Remove(i int) + func (s *Sparse) SubsetOf(rhs *Sparse) bool + func (s *Sparse) UnionWith(rhs *Sparse) + func (s Sparse) Contains(i int) bool + func (s Sparse) Empty() bool + func (s Sparse) Len() int