Documentation
¶
Index ¶
- type Set
- func (s Set[T]) Add(v ...T)
- func (s Set[T]) Clone() Set[T]
- func (s Set[T]) Contains(v T) (ok bool)
- func (s Set[T]) Difference(other Set[T]) Set[T]
- func (s Set[T]) Equal(other Set[T]) bool
- func (s Set[T]) Intersection(other Set[T]) Set[T]
- func (s Set[T]) Pop() (v T, ok bool)
- func (s Set[T]) String() string
- func (s Set[T]) SymmetricDifference(other Set[T]) Set[T]
- 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] map[T]struct{}
func New ¶
func New[T comparable]() Set[T]
func (Set[T]) Difference ¶
func (Set[T]) Intersection ¶
func (Set[T]) SymmetricDifference ¶
Click to show internal directories.
Click to hide internal directories.