package
Version:
v0.0.0-...-98ab79b
Opens a new window with list of versions in this module.
Published: Nov 26, 2024
License: MIT
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.