package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: May 31, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
type Set[T comparable] struct {
Data map[T]struct{}
}
func (obj *Set[T]) Add(value T)
添加元素
func (obj *Set[T]) Array() []T
返回数组
func (obj *Set[T]) Del(value T) bool
删除元素
func (obj *Set[T]) Has(value T) bool
判断元素是否存在
func (obj *Set[T]) ReSet()
重置
Source Files
¶
Click to show internal directories.
Click to hide internal directories.