Documentation
¶
Index ¶
- func IsSet(value interface{}) bool
- func IsSuperset(one Set, other Set) bool
- type HashSet
- func (set *HashSet) Add(e interface{}) bool
- func (set *HashSet) AddArray(e ...interface{}) []interface{}
- func (set *HashSet) Clear() []interface{}
- func (set *HashSet) Contains(e interface{}) bool
- func (set *HashSet) Elements() []interface{}
- func (set *HashSet) Len() int
- func (set *HashSet) Remove(e interface{}) bool
- func (set *HashSet) Same(other Set) bool
- func (set *HashSet) String() string
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HashSet ¶
type HashSet struct {
// contains filtered or unexported fields
}
HashSet define HashSet
type Set ¶
type Set interface { Add(e interface{}) (added bool) AddArray(e ...interface{}) (addedKeys []interface{}) Remove(e interface{}) (exist bool) Clear() (keys []interface{}) Contains(e interface{}) (exist bool) Len() int Same(other Set) bool Elements() []interface{} String() string }
Set define Set
func SymmetricDifference ¶
SymmetricDifference 生成集合 one 和集合 other 的对称差集
Click to show internal directories.
Click to hide internal directories.