Basically I own this one to the built in set() of python.
set()
The first is an union, the second an intersection. Did not know they existed