Documentation ¶
Index ¶
- func Commands() []internal.Command
- type Set
- func (set *Set) Add(elems []string) int
- func (set *Set) Cardinality() int
- func (set *Set) Contains(e string) bool
- func (set *Set) Get(e string) interface{}
- func (set *Set) GetAll() []string
- func (s *Set) GetMem() int64
- func (set *Set) GetRandom(count int) []string
- func (set *Set) Move(destination *Set, e string) int
- func (set *Set) Pop(count int) []string
- func (set *Set) Remove(elems []string) int
- func (set *Set) Subtract(others []*Set) *Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func Intersection ¶
The Intersection accepts limit parameter of type int and a list of sets whose intersects are to be calculated. When limit is greater than 0, then the calculation will stop once the intersect cardinality reaches limit without calculating the full intersect.
func (*Set) Cardinality ¶
Click to show internal directories.
Click to hide internal directories.