MCPcopy Index your code
hub / github.com/clips/pattern / union

Function union

pattern/graph/__init__.py:975–976  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

973# a & b => elements that appear in a as well as in b.
974# a - b => elements that appear in a but not in b.
975def union(a, b):
976 return list(set(a) | set(b))
977def intersection(a, b):
978 return list(set(a) & set(b))
979def difference(a, b):

Callers 1

partitionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…