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

Method In

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

In: checks whether item is present in set or not.

(item T)

Source from the content-addressed store, hash-verified

26 GetItems() []T
27 // In: checks whether item is present in set or not.
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.

Callers 11

IsSubsetOfMethod · 0.65
IntersectionMethod · 0.65
DifferenceMethod · 0.65
SymmetricDifferenceMethod · 0.65
TestNewFunction · 0.65
TestAddFunction · 0.65
TestDeleteFunction · 0.65
TestUnionFunction · 0.65
TestIntersectionFunction · 0.65
TestDifferenceFunction · 0.65
TestSymmetricDifferenceFunction · 0.65

Calls

no outgoing calls

Tested by 7

TestNewFunction · 0.52
TestAddFunction · 0.52
TestDeleteFunction · 0.52
TestUnionFunction · 0.52
TestIntersectionFunction · 0.52
TestDifferenceFunction · 0.52
TestSymmetricDifferenceFunction · 0.52