package
Version:
v2.0.0-...-c472316
Opens a new window with list of versions in this module.
Published: Apr 12, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Set represents a set data structure.
New returns an initialized set.
func (s Set[T]) Add(item T)
Add adds item into the set s.
func (s Set[T]) Contains(item T) bool
Contains returns true if the set s contains item.
func (s Set[T]) Delete(item T)
Delete deletes an item from the set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.