MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / HasAny

Method HasAny

pkg/funclet/runtime/cgroup/string.go:79–86  ·  view source on GitHub ↗

HasAny returns true if any items are contained in the set.

(items ...string)

Source from the content-addressed store, hash-verified

77
78// HasAny returns true if any items are contained in the set.
79func (s String) HasAny(items ...string) bool {
80 for _, item := range items {
81 if s.Has(item) {
82 return true
83 }
84 }
85 return false
86}
87
88// Difference returns a set of objects that are not in s2
89// For example:

Callers

nothing calls this directly

Calls 1

HasMethod · 0.95

Tested by

no test coverage detected