Versions in this module Expand all Collapse all v0 v0.2.0 Aug 11, 2019 Changes in this version + type Empty struct type Set + ContainsAll func(elems ...interface{}) bool + ContainsAny func(elems ...interface{}) bool + type SetToSlice interface + Elements func() []interface{} + ToInts func() []int + ToStrings func() []string v0.1.0 Aug 25, 2017 Changes in this version + var ErrAlreadyExisted = errors.New("element already exists") + var RaiseErrAlreadyExisted = false + type Set interface + Add func(elem interface{}) error + Clear func() + Contains func(item interface{}) bool + Copy func() Set + Diff func(b Set) Set + Elements func() []interface{} + Equal func(b Set) bool + Extend func(b interface{}) error + Intersect func(b Set) Set + IsSubsetOf func(b Set) bool + IsSupersetOf func(b Set) bool + Len func() int + Range func(foreach func(index int, elem interface{}) bool) + Remove func(elem interface{}) + String func() string + SymmetricDiff func(b Set) Set + ToThreadSafe func() Set + ToThreadUnsafe func() Set + Unite func(b Set) Set + func NewSafeSet(elems ...interface{}) Set + func NewSafeSetFrom(i interface{}) Set + func NewSafeSetFromFloats(e []float64) Set + func NewSafeSetFromInts(e []int) Set + func NewSafeSetFromStrings(e []string) Set + func NewSet(elems ...interface{}) Set + func NewSetFrom(i interface{}) Set + func NewSetFromFloats(e []float64) Set + func NewSetFromInts(e []int) Set + func NewSetFromStrings(e []string) Set