Documentation
¶
Index ¶
- type Set
- func (s *Set[T]) Add(items ...T)
- func (s *Set[T]) All() []T
- func (s *Set[T]) Clear()
- func (s *Set[T]) Copy() *Set[T]
- func (s *Set[T]) Count() int
- func (s *Set[T]) Diff(other *Set[T]) *Set[T]
- func (s *Set[T]) Equal(other *Set[T]) bool
- func (s *Set[T]) Has(items ...T) bool
- func (s *Set[T]) HasSubset(other *Set[T]) bool
- func (s *Set[T]) Intersect(other *Set[T]) *Set[T]
- func (s *Set[T]) Iter(ctx context.Context) <-chan T
- func (s *Set[T]) MirrorDiff(other *Set[T]) *Set[T]
- func (s *Set[T]) Remove(items ...T)
- func (s *Set[T]) SubsetOf(other *Set[T]) bool
- func (s *Set[T]) Union(other *Set[T]) *Set[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set[T comparable] struct { // contains filtered or unexported fields }
func New ¶ added in v1.0.0
func New[T comparable](items ...T) *Set[T]
func (*Set[T]) MirrorDiff ¶
Click to show internal directories.
Click to hide internal directories.