package
Version:
v1.109.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 10
Opens a new window with list of known importers.
Documentation
¶
Set holds a set of values.
NewSet creates a new set from its input values.
func (s Set[T]) Add(values ...T)
Add values to the set.
func (s Set[T]) Clone() Set[T]
Clone returns a copy of the set.
func (s Set[T]) Contains(value T) bool
Contains returns true if the value exists within the set.
Empty returns true if there are no values in the set.
Len returns the number of values in the set.
func (s Set[T]) Values() []T
Values returns all values in the set.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.