Documentation
¶
Index ¶
- type Iterator
- type Set
- func (s *Set) Add(value int)
- func (s *Set) Array() *bitarray.Array
- func (s *Set) Clear()
- func (s *Set) Clone() sets.Set[int]
- func (s *Set) Contains(value int) bool
- func (s *Set) Iterator() iter.Iterator[int]
- func (s *Set) Remove(value int)
- func (s *Set) SetIterator() sets.Iterator[int]
- func (s *Set) Size() int
- func (s *Set) Stream(yield func(int) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator is an iterator over a Set.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is a set implementation based on bit array.
func NewFromIterable ¶ added in v1.6.1
NewFromIterable creates a set with the given size from the given iter.Iterable.
func (*Set) Remove ¶
Remove removes the given value from the Set. If the value is not in the Set, this method does nothing.
func (*Set) SetIterator ¶ added in v1.5.0
SetIterator returns an iterator over the elements in the Set.
Click to show internal directories.
Click to hide internal directories.