Versions in this module Expand all Collapse all v0 deprecated v0.2.0 Apr 5, 2021 v0.1.0 Apr 4, 2020 Changes in this version + type Set struct + func NewSet(capacity int) *Set + func (s *Set) Add(i int) + func (s *Set) Capacity() int + func (s *Set) ChangeCapacity(newCapacity int) + func (s *Set) Clear() + func (s *Set) Contains(i int) bool + func (s *Set) Remove(i int) + func (s *Set) Size() int + func (s1 *Set) IntersectWith(s2 *Set) + type Set256 struct + func (Set256) Capacity() int + func (b *Set256) Position(n uint8) (int, bool) + func (c *Set256) IntersectN(bs []*Set256) + func (s *Set256) Add(n uint8) + func (s *Set256) Clear() + func (s *Set256) Contains(n uint8) bool + func (s *Set256) Elements(a []uint8, start uint8) int + func (s *Set256) Elements64(a []uint64, start uint8, high uint64) int + func (s *Set256) Empty() bool + func (s *Set256) Remove(n uint8) + func (s *Set256) Size() int + func (s Set256) String() string + func (s1 *Set256) Equal(s2 *Set256) bool + type Set64 uint64 + func (Set64) Capacity() int + func (s *Set64) Add(u uint8) + func (s *Set64) Clear() + func (s *Set64) Contains(u uint8) bool + func (s *Set64) Remove(u uint8) + func (s Set64) Elements(a []uint8, start uint8) int + func (s Set64) Elements64(a []uint64, start uint8, high uint64) int + func (s Set64) Empty() bool + func (s Set64) Position(n uint8) (int, bool) + func (s Set64) Size() int + func (s Set64) String() string + func (s1 *Set64) IntersectWith(s2 Set64) + func (s1 *Set64) UnionWith(s2 Set64) + type SparseSet struct + func NewSparseSet(els ...uint64) *SparseSet + func (s *SparseSet) Add(n uint64) + func (s *SparseSet) Clear() + func (s *SparseSet) Contains(n uint64) bool + func (s *SparseSet) Elements(a []uint64, start uint64) int + func (s *SparseSet) Empty() bool + func (s *SparseSet) Intersect(ss ...*SparseSet) + func (s *SparseSet) MemSize() uint64 + func (s *SparseSet) Remove(n uint64) + func (s *SparseSet) Size() int + func (s SparseSet) String() string + func (s1 *SparseSet) Equal(s2 *SparseSet) bool