Kaydet (Commit) 69926eae authored tarafından Jeremy Hylton's avatar Jeremy Hylton

add remove method to set

üst e8c6ce46
......@@ -7,6 +7,8 @@ class Set:
return self.elts.keys()
def has_elt(self, elt):
return self.elts.has_key(elt)
def remove(self, elt):
del self.elts[elt]
class Stack:
def __init__(self):
......
......@@ -7,6 +7,8 @@ class Set:
return self.elts.keys()
def has_elt(self, elt):
return self.elts.has_key(elt)
def remove(self, elt):
del self.elts[elt]
class Stack:
def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment