Documentation
¶
Index ¶
- Constants
- type BitVector
- func (b *BitVector[T]) Add(t ...T)
- func (b *BitVector[T]) Clone() Set[T]
- func (b *BitVector[T]) Contains(t T) bool
- func (b *BitVector[T]) Diff(s Set[T]) Set[T]
- func (b *BitVector[T]) Elems() (elems []T)
- func (b *BitVector[T]) Empty() bool
- func (b *BitVector[T]) Equal(s Set[T]) bool
- func (b *BitVector[T]) Intersect(s Set[T]) Set[T]
- func (b *BitVector[T]) Pop() T
- func (b *BitVector[T]) Remove(t ...T) Set[T]
- func (b *BitVector[T]) Size() int
- func (b *BitVector[T]) Union(s Set[T]) Set[T]
- type HashSet
- func (h *HashSet[T]) Add(s ...T)
- func (h *HashSet[T]) Clone() Set[T]
- func (h *HashSet[T]) Contains(t T) bool
- func (h *HashSet[T]) Diff(other Set[T]) Set[T]
- func (h *HashSet[T]) Elems() []T
- func (h *HashSet[T]) Empty() bool
- func (h *HashSet[T]) Equal(other Set[T]) bool
- func (h *HashSet[T]) Intersect(s Set[T]) Set[T]
- func (h *HashSet[T]) Pop() T
- func (h *HashSet[T]) Remove(s ...T) Set[T]
- func (h *HashSet[T]) Size() int
- func (h *HashSet[T]) Union(other Set[T]) Set[T]
- type Queue
- type Set
- type Stack
Constants ¶
View Source
const Capacity = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitVector ¶
type BitVector[T constraints.Unsigned] struct { // contains filtered or unexported fields }
BitVector -----------------------------------------------
func NewBitVectorSet ¶
func NewBitVectorSet[T constraints.Unsigned](init T) *BitVector[T]
type HashSet ¶
type HashSet[T comparable] struct { // contains filtered or unexported fields }
HashSet -------------------------------------------------------------
func NewHashSet ¶
func NewHashSet[T comparable]() *HashSet[T]
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
func NewQueueFrom ¶
Click to show internal directories.
Click to hide internal directories.