MCPcopy
hub / github.com/gogf/gf / Equal

Method Equal

container/gset/gset_str_set.go:159–163  ·  view source on GitHub ↗

Equal checks whether the two sets equal.

(other *StrSet)

Source from the content-addressed store, hash-verified

157
158// Equal checks whether the two sets equal.
159func (set *StrSet) Equal(other *StrSet) bool {
160 set.lazyInit()
161 other.lazyInit()
162 return set.TSet.Equal(other.TSet)
163}
164
165// IsSubsetOf checks whether the current set is a sub-set of `other`.
166func (set *StrSet) IsSubsetOf(other *StrSet) bool {

Callers 1

TestStrSet_EqualFunction · 0.95

Calls 2

lazyInitMethod · 0.95
EqualMethod · 0.65

Tested by 1

TestStrSet_EqualFunction · 0.76