package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 15, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
HashSet 哈希集合类
NewHashSet get new instance of HashSet
Add add one element to hashset
Contains check if hashset contains the element
Len get the length of hashset
func (set *HashSet) Remove(e interface{})
Remove remove one element form hashset
String format hashset to string
type Set interface {
Add(e interface{}) bool
Remove(e interface{})
Clear()
Contains(e interface{}) bool
Len() int
String() string
}
Set 接口
Source Files
¶
Click to show internal directories.
Click to hide internal directories.