MCPcopy Create free account
hub / github.com/ActiveState/code / insideout

Method insideout

recipes/Python/574428_Container/recipe-574428.py:42–47  ·  view source on GitHub ↗
(self,other)

Source from the content-addressed store, hash-verified

40 res.append(item)
41 return Container(res)
42 def insideout(self,other): # !=Intersection != Union item only in x but not in y
43 res = []
44 for item in self.switch:
45 if item not in other:
46 res.append(item)
47 return Container(res)
48 def outinside(self,other): # != Union != Intersection item in x and y but not in both
49 res = []
50 for item in self.switch:

Callers 1

recipe-574428.pyFile · 0.80

Calls 2

ContainerClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected