Versions in this module Expand all Collapse all v1 v1.2.10 Aug 26, 2024 Changes in this version + type Set struct + func Diff(sets ...*Set) *Set + func Intersect(sets ...*Set) *Set + func Make(members ...string) *Set + func Union(sets ...*Set) *Set + func (set *Set) Add(val string) int + func (set *Set) ForEach(consumer func(member string) bool) + func (set *Set) Has(val string) bool + func (set *Set) Len() int + func (set *Set) RandomDistinctMembers(limit int) []string + func (set *Set) RandomMembers(limit int) []string + func (set *Set) Remove(val string) int + func (set *Set) SetScan(cursor int, count int, pattern string) ([][]byte, int) + func (set *Set) ShallowCopy() *Set + func (set *Set) ToSlice() []string