Versions in this module Expand all Collapse all v1 v1.4.5 May 24, 2016 v1.0.2 Aug 20, 2015 Changes in this version + func IntSlice(s Interface) []int + func StringSlice(s Interface) []string + type Interface interface + Add func(items ...interface{}) + Clear func() + Copy func() Interface + Each func(func(interface{}) bool) + Has func(items ...interface{}) bool + IsEmpty func() bool + IsEqual func(s Interface) bool + IsSubset func(s Interface) bool + IsSuperset func(s Interface) bool + List func() []interface{} + Merge func(s Interface) + New func(items ...interface{}) Interface + Pop func() interface{} + Remove func(items ...interface{}) + Separate func(s Interface) + Size func() int + String func() string + func Difference(set1, set2 Interface, sets ...Interface) Interface + func Intersection(set1, set2 Interface, sets ...Interface) Interface + func SymmetricDifference(s Interface, t Interface) Interface + func Union(set1, set2 Interface, sets ...Interface) Interface + type Set struct + func New(items ...interface{}) *Set + func (s *Set) Add(items ...interface{}) + func (s *Set) Clear() + func (s *Set) Copy() Interface + func (s *Set) Each(f func(item interface{}) bool) + func (s *Set) Has(items ...interface{}) bool + func (s *Set) IsEmpty() bool + func (s *Set) IsEqual(t Interface) bool + func (s *Set) IsSubset(t Interface) (subset bool) + func (s *Set) IsSuperset(t Interface) bool + func (s *Set) List() []interface{} + func (s *Set) Merge(t Interface) + func (s *Set) New(items ...interface{}) Interface + func (s *Set) Pop() interface{} + func (s *Set) Remove(items ...interface{}) + func (s *Set) Separate(t Interface) + func (s *Set) Size() int + func (s *Set) String() string + type SetNonTS struct + func NewNonTS(items ...interface{}) *SetNonTS + func (s *SetNonTS) Add(items ...interface{}) + func (s *SetNonTS) Clear() + func (s *SetNonTS) Copy() Interface + func (s *SetNonTS) Each(f func(item interface{}) bool) + func (s *SetNonTS) Has(items ...interface{}) bool + func (s *SetNonTS) IsEmpty() bool + func (s *SetNonTS) IsEqual(t Interface) bool + func (s *SetNonTS) IsSubset(t Interface) (subset bool) + func (s *SetNonTS) IsSuperset(t Interface) bool + func (s *SetNonTS) List() []interface{} + func (s *SetNonTS) Merge(t Interface) + func (s *SetNonTS) New(items ...interface{}) Interface + func (s *SetNonTS) Pop() interface{} + func (s *SetNonTS) Remove(items ...interface{}) + func (s *SetNonTS) Separate(t Interface) + func (s *SetNonTS) Size() int + func (s *SetNonTS) String() string