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

Method ContainsAll

tools/stringset.go:48–54  ·  view source on GitHub ↗

Determines if the given items are all in the set

(i ...string)

Source from the content-addressed store, hash-verified

46
47// Determines if the given items are all in the set
48func (set StringSet) ContainsAll(i ...string) bool {
49 allSet := NewStringSetFromSlice(i)
50 if allSet.IsSubset(set) {
51 return true
52 }
53 return false
54}
55
56// Determines if every item in the other set is in this set.
57func (set StringSet) IsSubset(other StringSet) bool {

Calls 2

NewStringSetFromSliceFunction · 0.85
IsSubsetMethod · 0.45