Documentation ¶
Index ¶
- type Set
- func (s *Set[T]) Add(values ...T)
- func (s *Set[T]) Contains(value T) bool
- func (s *Set[T]) Empty() bool
- func (s *Set[T]) Equals(o *Set[T]) bool
- func (s *Set[T]) Len() int
- func (s *Set[T]) Range(callback func(value T))
- func (s *Set[T]) Remove(values ...T)
- func (s *Set[T]) Slice() []T
- func (s *Set[T]) SortedSliceFunc(less func(a, b T) bool) []T
- func (s *Set[T]) String() string
- func (s *Set[T]) Without(toExclude *Set[T]) []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 ¶
func New[T comparable](values ...T) *Set[T]
func (*Set[T]) SortedSliceFunc ¶
Click to show internal directories.
Click to hide internal directories.