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

Method Difference

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

Difference: gives new difference set of both sets. ex: [1,2,3] Difference [3,4,5] -> [1,2]

(set2 Set[T])

Source from the content-addressed store, hash-verified

45 // Difference: gives new difference set of both sets.
46 // ex: [1,2,3] Difference [3,4,5] -> [1,2]
47 Difference(set2 Set[T]) Set[T]
48 // SymmetricDifference: gives new symmetric difference set of both sets.
49 // ex: [1,2,3] SymmetricDifference [3,4,5] -> [1,2,4,5]
50 SymmetricDifference(set2 Set[T]) Set[T]

Callers 1

TestDifferenceFunction · 0.65

Calls

no outgoing calls

Tested by 1

TestDifferenceFunction · 0.52