Documentation
¶
Index ¶
- type Set
- func (s *Set[T]) Add(elements ...T)
- func (s *Set[T]) Clear()
- func (s *Set[T]) Contains(element T) bool
- func (s *Set[T]) Difference(other *Set[T])
- func (s *Set[T]) Intersection(other *Set[T])
- func (s *Set[T]) List() []T
- func (s *Set[T]) Remove(elements ...T)
- func (s *Set[T]) Size() int
- func (s *Set[T]) Union(other *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 NewSet ¶
func NewSet[T comparable](elements ...T) *Set[T]
func (*Set[T]) Difference ¶
func (*Set[T]) Intersection ¶
Click to show internal directories.
Click to hide internal directories.