14 lines
247 B
Python
14 lines
247 B
Python
|
|
def as_string(obj):
|
||
|
|
return "" if not obj else str(obj)
|
||
|
|
|
||
|
|
|
||
|
|
class CompleteSet(set):
|
||
|
|
def union(self, other):
|
||
|
|
return self
|
||
|
|
|
||
|
|
def intersection(self, other):
|
||
|
|
return set(other)
|
||
|
|
|
||
|
|
def __contains__(self, y):
|
||
|
|
return True
|