Lines Matching defs:Set
6 type Set struct { struct
7 set
8 l sync.RWMutex // we name it because we don't want to expose it
26 func (s *Set) Add(items ...interface{}) {
41 func (s *Set) Remove(items ...interface{}) {
56 func (s *Set) Pop() interface{} {
71 func (s *Set) Has(items ...interface{}) bool {
90 func (s *Set) Size() int {
99 func (s *Set) Clear() {
107 func (s *Set) IsEqual(t Interface) bool {
132 func (s *Set) IsSubset(t Interface) (subset bool) {
149 func (s *Set) Each(f func(item interface{}) bool) {
162 func (s *Set) List() []interface{} {
176 func (s *Set) Copy() Interface {
186 func (s *Set) Merge(t Interface) {