Documentation
¶
Index ¶
- type Config
- type HashSet
- func (s *HashSet[T]) Add(item T)
- func (s *HashSet[T]) AddAll(sequence iter.Seq[T])
- func (s *HashSet[T]) All() iter.Seq[T]
- func (s *HashSet[T]) Contains(item T) bool
- func (s *HashSet[T]) ContainsAll(other collections.Collection[T]) bool
- func (s *HashSet[T]) Empty() bool
- func (s *HashSet[T]) Remove() T
- func (s *HashSet[T]) RemoveAll(other collections.Collection[T])
- func (s *HashSet[T]) RemoveElement(item T)
- func (s *HashSet[T]) RetainAll(other collections.Collection[T])
- func (s *HashSet[T]) Size() int
- func (s *HashSet[T]) String() string
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashSet ¶
type HashSet[T comparable] struct { // contains filtered or unexported fields }
HashSet represents a set of elements of type T.
func (*HashSet[T]) ContainsAll ¶
func (s *HashSet[T]) ContainsAll(other collections.Collection[T]) bool
func (*HashSet[T]) RemoveAll ¶
func (s *HashSet[T]) RemoveAll(other collections.Collection[T])
func (*HashSet[T]) RemoveElement ¶
func (s *HashSet[T]) RemoveElement(item T)
func (*HashSet[T]) RetainAll ¶
func (s *HashSet[T]) RetainAll(other collections.Collection[T])
Click to show internal directories.
Click to hide internal directories.