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

Method Equal

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

Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)

(s2 String)

Source from the content-addressed store, hash-verified

155// Two sets are equal if their membership is identical.
156// (In practice, this means same elements, order doesn't matter)
157func (s1 String) Equal(s2 String) bool {
158 return len(s1) == len(s2) && s1.IsSuperset(s2)
159}
160
161type sortableSliceOfString []string
162

Callers

nothing calls this directly

Calls 1

IsSupersetMethod · 0.95

Tested by

no test coverage detected