Versions in this module Expand all Collapse all v1 v1.8.4 Mar 3, 2022 Changes in this version + type ThreadUnsafeSet map[interface{}]struct + func (set *ThreadUnsafeSet) Add(i interface{}) bool + func (set *ThreadUnsafeSet) Cardinality() int + func (set *ThreadUnsafeSet) CartesianProduct(other Set) Set + func (set *ThreadUnsafeSet) Clear() + func (set *ThreadUnsafeSet) Clone() Set + func (set *ThreadUnsafeSet) Contains(i ...interface{}) bool + func (set *ThreadUnsafeSet) Difference(other Set) Set + func (set *ThreadUnsafeSet) Each(cb func(interface{}) bool) + func (set *ThreadUnsafeSet) Equal(other Set) bool + func (set *ThreadUnsafeSet) Intersect(other Set) Set + func (set *ThreadUnsafeSet) IsProperSubset(other Set) bool + func (set *ThreadUnsafeSet) IsProperSuperset(other Set) bool + func (set *ThreadUnsafeSet) IsSubset(other Set) bool + func (set *ThreadUnsafeSet) IsSuperset(other Set) bool + func (set *ThreadUnsafeSet) Iter() <-chan interface{} + func (set *ThreadUnsafeSet) Iterator() *Iterator + func (set *ThreadUnsafeSet) MarshalJSON() ([]byte, error) + func (set *ThreadUnsafeSet) Pop() interface{} + func (set *ThreadUnsafeSet) PowerSet() Set + func (set *ThreadUnsafeSet) Remove(i interface{}) + func (set *ThreadUnsafeSet) String() string + func (set *ThreadUnsafeSet) SymmetricDifference(other Set) Set + func (set *ThreadUnsafeSet) ToSlice() []interface{} + func (set *ThreadUnsafeSet) Union(other Set) Set + func (set *ThreadUnsafeSet) UnmarshalJSON(b []byte) error v1.7.1 Aug 31, 2018 Changes in this version + type Iterator struct + C <-chan interface{} + func (i *Iterator) Stop() + type OrderedPair struct + First interface{} + Second interface{} + func (pair *OrderedPair) Equal(other OrderedPair) bool + func (pair OrderedPair) String() string + type Set interface + Add func(i interface{}) bool + Cardinality func() int + CartesianProduct func(other Set) Set + Clear func() + Clone func() Set + Contains func(i ...interface{}) bool + Difference func(other Set) Set + Each func(func(interface{}) bool) + Equal func(other Set) bool + Intersect func(other Set) Set + IsProperSubset func(other Set) bool + IsProperSuperset func(other Set) bool + IsSubset func(other Set) bool + IsSuperset func(other Set) bool + Iter func() <-chan interface{} + Iterator func() *Iterator + Pop func() interface{} + PowerSet func() Set + Remove func(i interface{}) + String func() string + SymmetricDifference func(other Set) Set + ToSlice func() []interface{} + Union func(other Set) Set + func NewSet(s ...interface{}) Set + func NewSetFromSlice(s []interface{}) Set + func NewSetWith(elts ...interface{}) Set + func NewThreadUnsafeSet() Set + func NewThreadUnsafeSetFromSlice(s []interface{}) Set