package
Version:
v0.1.11
Opens a new window with list of versions in this module.
Published: Jul 10, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Set represents a set of unique elements
func (s Set[T]) Add(ss ...T) Set[T]
Add adds a list of elements to a set
Copy returns a copy of a set
Has returns true if an element is in a set
func (s Set[T]) Remove(ss ...T) Set[T]
Remove removes a list of elements from a set
func (s Set[T]) Slice() []T
Slice returns the set as a slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.