MCPcopy Index your code
hub / github.com/cortexlabs/cortex / SymmetricDifference

Function SymmetricDifference

pkg/lib/sets/strset/strset.go:322–326  ·  view source on GitHub ↗

SymmetricDifference returns a new set which s is the difference of items which are in one of either, but not in both.

(s Set, t Set)

Source from the content-addressed store, hash-verified

320// SymmetricDifference returns a new set which s is the difference of items
321// which are in one of either, but not in both.
322func SymmetricDifference(s Set, t Set) Set {
323 u := Difference(s, t)
324 v := Difference(t, s)
325 return Union(u, v)
326}

Callers

nothing calls this directly

Calls 2

DifferenceFunction · 0.70
UnionFunction · 0.70

Tested by

no test coverage detected