package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 9, 2019
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
¶
type Set map[interface{}]bool
func (this Set) Add(elem interface{}) bool
add an elem to the set
if the elem is already existed, return false.
otherwise return true for success adding
func (this Set) Delete(elem interface{}) bool
delete an elem from the set
return false if the elem is not existed
func (this Set) IsExist(elem interface{}) bool
whether the elem is existed in the set
return the length of the set, which means how many different elem in the set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.