package
Version:
v1.0.0-rc.1
Opens a new window with list of versions in this module.
Published: Dec 7, 2022
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 is a map as a set data structure.
New creates an empty Set for elements of type T.
func (s Set[T]) Add(elem T)
Add adds the element of type T into the Set.
func (s Set[T]) Contains(elem T) bool
Contains checks if element exists in the Set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.