Versions in this module Expand all Collapse all v1 v1.11.11 Aug 6, 2024 Changes in this version + type Bits struct + func BitsFromBytes(bytes []byte) Bits + func NewBits(bits ...int) Bits + func (b Bits) Add(i int) + func (b Bits) BitLen() int + func (b Bits) Bytes() []byte + func (b Bits) Clear() + func (b Bits) Contains(i int) bool + func (b Bits) Difference(other Bits) + func (b Bits) Intersection(other Bits) + func (b Bits) Len() int + func (b Bits) Remove(i int) + func (b Bits) String() string + func (b Bits) Union(other Bits) + type Bits64 uint64 + func (b *Bits64) Add(i uint) + func (b *Bits64) Clear() + func (b *Bits64) Difference(s Bits64) + func (b *Bits64) Intersection(s Bits64) + func (b *Bits64) Remove(i uint) + func (b *Bits64) Union(s Bits64) + func (b Bits64) Contains(i uint) bool + func (b Bits64) Len() int + func (b Bits64) String() string + type SampleableSet struct + func NewSampleableSet[T comparable](size int) SampleableSet[T] + func OfSampleable[T comparable](elts ...T) SampleableSet[T] + func (s *SampleableSet[T]) Add(elements ...T) + func (s *SampleableSet[T]) Clear() + func (s *SampleableSet[T]) Difference(set SampleableSet[T]) + func (s *SampleableSet[T]) Remove(elements ...T) + func (s *SampleableSet[T]) Union(set SampleableSet[T]) + func (s *SampleableSet[T]) UnmarshalJSON(b []byte) error + func (s *SampleableSet[_]) MarshalJSON() ([]byte, error) + func (s SampleableSet[T]) Contains(e T) bool + func (s SampleableSet[T]) Equals(other SampleableSet[T]) bool + func (s SampleableSet[T]) List() []T + func (s SampleableSet[T]) Overlaps(big SampleableSet[T]) bool + func (s SampleableSet[T]) Sample(numToSample int) []T + func (s SampleableSet[_]) Len() int + type Set map[T]struct + func NewSet[T comparable](size int) Set[T] + func Of[T comparable](elts ...T) Set[T] + func (s *Set[T]) Add(elts ...T) + func (s *Set[T]) Contains(elt T) bool + func (s *Set[T]) Difference(set Set[T]) + func (s *Set[T]) Overlaps(big Set[T]) bool + func (s *Set[T]) Peek() (T, bool) + func (s *Set[T]) Pop() (T, bool) + func (s *Set[T]) Remove(elts ...T) + func (s *Set[T]) Union(set Set[T]) + func (s *Set[T]) UnmarshalJSON(b []byte) error + func (s *Set[_]) Clear() + func (s Set[T]) Equals(other Set[T]) bool + func (s Set[T]) List() []T + func (s Set[_]) Len() int + func (s Set[_]) MarshalJSON() ([]byte, error)