remove method on HashSet

This commit is contained in:
Mike Bayer
2006-01-08 01:34:45 +00:00
parent 77a11675bb
commit 4bc49f9976
+2
View File
@@ -135,6 +135,8 @@ class HashSet(object):
self.map.clear()
def append(self, item):
self.map[item] = item
def remove(self, item):
del self.map[item]
def __add__(self, other):
return HashSet(self.map.values() + [i for i in other])
def __len__(self):