MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / IsSubsetOf

Method IsSubsetOf

structure/set/set.go:30–30  ·  view source on GitHub ↗

IsSubsetOf: checks whether set is subset of set2 or not.

(set2 Set[T])

Source from the content-addressed store, hash-verified

28 In(item T) bool
29 // IsSubsetOf: checks whether set is subset of set2 or not.
30 IsSubsetOf(set2 Set[T]) bool
31 // IsProperSubsetOf: checks whether set is proper subset of set2 or not.
32 // ex: [1,2,3] proper subset of [1,2,3,4] -> true
33 IsProperSubsetOf(set2 Set[T]) bool

Callers 2

IsSupersetOfMethod · 0.65
TestIsSubsetOfFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestIsSubsetOfFunction · 0.52