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

Method Equal

container/gset/gset_int_set.go:146–150  ·  view source on GitHub ↗

Equal checks whether the two sets equal.

(other *IntSet)

Source from the content-addressed store, hash-verified

144
145// Equal checks whether the two sets equal.
146func (set *IntSet) Equal(other *IntSet) bool {
147 set.lazyInit()
148 other.lazyInit()
149 return set.TSet.Equal(other.TSet)
150}
151
152// IsSubsetOf checks whether the current set is a sub-set of `other`.
153func (set *IntSet) IsSubsetOf(other *IntSet) bool {

Callers 1

TestIntSet_EqualFunction · 0.95

Calls 2

lazyInitMethod · 0.95
EqualMethod · 0.65

Tested by 1

TestIntSet_EqualFunction · 0.76