Versions in this module Expand all Collapse all v0 v0.1.6 Jun 19, 2021 Changes in this version + type Iterator struct + func (it *Iterator) Next() bool + func (it *Iterator) Value() interface{} + type OrderedRules interface + Less func(interface{}, interface{}) bool + type Rules interface + Equivalent func(interface{}, interface{}) bool + Hash func(interface{}) int + type Set struct + func NewSet(rules Rules) Set + func NewSetFromSlice(rules Rules, vals []interface{}) Set + func (s *Set) GobDecode(buf []byte) error + func (s Set) Add(val interface{}) + func (s Set) Copy() Set + func (s Set) EachValue(cb func(interface{})) + func (s Set) GobEncode() ([]byte, error) + func (s Set) Has(val interface{}) bool + func (s Set) HasRules(rules Rules) bool + func (s Set) Iterator() *Iterator + func (s Set) Length() int + func (s Set) Remove(val interface{}) + func (s Set) Rules() Rules + func (s Set) Values() []interface{} + func (s1 Set) Intersection(s2 Set) Set + func (s1 Set) Subtract(s2 Set) Set + func (s1 Set) SymmetricDifference(s2 Set) Set + func (s1 Set) Union(s2 Set) Set