Documentation
¶
Index ¶
- type Set
- func (s Set) Add(v ...string)
- func (s Set) AddSet(other Set)
- func (s Set) Contains(a string) bool
- func (s Set) Copy() Set
- func (s Set) Empty() bool
- func (s Set) Get() (string, bool)
- func (s Set) Intersection(other Set) int
- func (s Set) Jaccard(other Set) float64
- func (s Set) Remove(a string) bool
- func (s Set) Size() int
- func (s Set) Slice() []string
- func (s Set) String() string
- func (s Set) Union(other Set) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
Set implements a simple hash set for strings. The value is true, if the key exists. For a consistent behavior, do not explicitly set the value to false for a missing key.
func (Set) Intersection ¶
Click to show internal directories.
Click to hide internal directories.