Documentation
¶
Index ¶
- func Add(a *StringSet, item string)
- func AddArray(a *StringSet, items []string)
- func AddInt(a *IntSet, item int)
- func AddIntArray(a *IntSet, items []int)
- func Jaquard(a, b StringsSet) float64
- type BitSet
- func (self *BitSet) Binary() string
- func (self *BitSet) ClearBits(bits Bits)
- func (self *BitSet) ClearSwitch(s Switch)
- func (self *BitSet) Contents() uint64
- func (a *BitSet) Difference(b BitsSet)
- func (self *BitSet) HasBits(b Bits) bool
- func (a *BitSet) Intersection(b BitsSet)
- func (self *BitSet) IsSet(s Switch) bool
- func (a *BitSet) Jaquard(b BitsSet) float64
- func (self *BitSet) SetBits(bits Bits)
- func (self *BitSet) SetSwitch(s Switch)
- func (self *BitSet) SetSwitchArray(s []Switch)
- func (self *BitSet) SetSwitches(s ...Switch)
- func (self *BitSet) Size() int
- func (a *BitSet) Union(b BitsSet)
- type Bits
- type BitsSet
- type IntSet
- func (self *IntSet) Add(item int) bool
- func (a *IntSet) AddArray(items []int)
- func (self *IntSet) Contains(item int) bool
- func (self *IntSet) Contents() []int
- func (a *IntSet) Difference(b *IntSet)
- func (a *IntSet) Intersection(b *IntSet)
- func (a *IntSet) Jaquard(b *IntSet) float64
- func (self *IntSet) Remove(item int) bool
- func (self *IntSet) Size() int
- func (a *IntSet) Union(b *IntSet)
- type IntsSet
- type StringSet
- func (self *StringSet) Add(item string)
- func (a *StringSet) AddArray(items []string)
- func (self *StringSet) Contains(item string) bool
- func (self *StringSet) Contents() []string
- func (a *StringSet) Difference(b StringsSet)
- func (a *StringSet) Intersection(b StringsSet)
- func (a *StringSet) Jaquard(b *StringSet) float64
- func (self *StringSet) Remove(item string)
- func (self *StringSet) Size() int
- func (a *StringSet) Union(b StringsSet)
- type StringsSet
- type Switch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIntArray ¶
func Jaquard ¶
func Jaquard(a, b StringsSet) float64
Types ¶
type BitSet ¶
type BitSet struct {
// contains filtered or unexported fields
}
represents the set
func (*BitSet) ClearSwitch ¶
func (*BitSet) Difference ¶
func (*BitSet) Intersection ¶
func (*BitSet) SetSwitchArray ¶
func (*BitSet) SetSwitches ¶
type IntSet ¶
type IntSet struct {
// contains filtered or unexported fields
}
represents the set
func (*IntSet) Difference ¶
func (*IntSet) Intersection ¶
type IntsSet ¶
type IntsSet interface { Add(item int) Remove(item int) Contents() []int Size() int Contains(item int) bool Union(a IntsSet) Intersection(a IntsSet) Difference(a IntsSet) }
interface for a set of integers
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
represents the set
func (*StringSet) Difference ¶
func (a *StringSet) Difference(b StringsSet)
func (*StringSet) Intersection ¶
func (a *StringSet) Intersection(b StringsSet)
func (*StringSet) Union ¶
func (a *StringSet) Union(b StringsSet)
type StringsSet ¶
type StringsSet interface { Add(item string) Remove(item string) Contents() []string Size() int Contains(item string) bool Union(a StringsSet) Intersection(a StringsSet) Difference(a StringsSet) }
interface for a set of strings
func Difference ¶
func Difference(a, b StringsSet) StringsSet
func Intersection ¶
func Intersection(a ...StringsSet) StringsSet
func Union ¶
func Union(a ...StringsSet) StringsSet
Click to show internal directories.
Click to hide internal directories.