Documentation
¶
Index ¶
- type Bitset
- func (a *Bitset[V]) And(b *Bitset[V]) (aAndB *Bitset[V])
- func (b *Bitset[V]) Cap() int
- func (s *Bitset[V]) Clear()
- func (s *Bitset[V]) Copy() *Bitset[V]
- func (s *Bitset[V]) Get(index V) bool
- func (s *Bitset[V]) Iterate() (iterable.Iter[V], uint)
- func (b *Bitset[V]) Len() int
- func (a *Bitset[V]) Or(b *Bitset[V]) (aOrB *Bitset[V])
- func (b *Bitset[V]) Pop() uint
- func (s *Bitset[V]) Set(indices ...V)
- func (s *Bitset[V]) Unset(indices ...V)
- type Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitset ¶
type Bitset[V bitset.Value] struct { logical.IterableMixin[V] // contains filtered or unexported fields }
Bitset is a boolean-slice-backed bit array. It favors speed over size.
func (*Bitset[V]) Get ¶
Get returns whether or not a value is set in the underlying bool slice. Getting a value outside of what's stored automatically returns false.
Click to show internal directories.
Click to hide internal directories.