MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / IsSubset

Method IsSubset

tools/stringset.go:57–64  ·  view source on GitHub ↗

Determines if every item in the other set is in this set.

(other StringSet)

Source from the content-addressed store, hash-verified

55
56// Determines if every item in the other set is in this set.
57func (set StringSet) IsSubset(other StringSet) bool {
58 for elem := range set {
59 if !other.Contains(elem) {
60 return false
61 }
62 }
63 return true
64}
65
66// Determines if every item of this set is in the other set.
67func (set StringSet) IsSuperset(other StringSet) bool {

Calls 1

ContainsMethod · 0.65