github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/xcontainer/set/set.go (about)

     1  package set
     2  
     3  type Set interface {
     4  	Put(items ...interface{})
     5  	Remove(items ...interface{})
     6  	Values() []interface{}
     7  
     8  	ContainAll(items ...interface{}) bool
     9  	ContainAny(items ...interface{}) bool
    10  	InterSection(o Set) Set
    11  	Union(o Set) Set
    12  	SubSet(o Set) bool
    13  	SuperSet(o Set) bool
    14  	Difference(o Set) Set
    15  }