MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / IsProperSubsetOfElements

Function IsProperSubsetOfElements

pkg/util/test/elements.go:206–208  ·  view source on GitHub ↗

IsProperSubsetOfElements is like IsSubsetOfElements, but checks for proper subset.

(eq any, sub, super any)

Source from the content-addressed store, hash-verified

204
205// IsProperSubsetOfElements is like IsSubsetOfElements, but checks for proper subset.
206func IsProperSubsetOfElements(eq any, sub, super any) bool {
207 return IsSubsetOfElements(eq, sub, super) && !IsSubsetOfElements(eq, super, sub)
208}
209
210// SameElements returns true iff IsSubsetOfElements(eq, xs, ys) returns true and IsSubsetOfElements(eq, ys, xs) returns true and false otherwise.
211func SameElements(eq any, xs, ys any) bool {

Callers 2

TestSetRelationsFunction · 0.85

Calls 1

IsSubsetOfElementsFunction · 0.85

Tested by 1

TestSetRelationsFunction · 0.68