Documentation
¶
Index ¶
- type Set
- func (set Set[T]) Add(value T)
- func (set Set[T]) AddAll(values ...T)
- func (set Set[T]) Clone() Set[T]
- func (set Set[T]) Contains(value T) bool
- func (set Set[T]) Iter() iter.Seq[T]
- func (set Set[T]) Remove(value T)
- func (set Set[T]) RemoveAll(values ...T)
- func (set Set[T]) Size() int
- func (set Set[T]) ToSlice() []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 Clone ¶
func Clone[T comparable](set Set[T]) Set[T]
func New ¶
func New[T comparable]() Set[T]
func NewFromData ¶
func NewFromData[T comparable](data ...T) Set[T]
func NewFromSlice ¶
func NewFromSlice[T comparable](data []T) Set[T]
Click to show internal directories.
Click to hide internal directories.