Add remove() to Map.

This commit is contained in:
Bob Nystrom
2015-01-25 17:42:36 -08:00
parent 0e6a90443e
commit 4579171afa
7 changed files with 142 additions and 46 deletions
+5 -1
View File
@@ -26,7 +26,11 @@ but may be in any order, and may even change between invocations of Wren.
Implements the [iterator protocol](../control-flow.html#the-iterator-protocol)
for iterating over the elements in the list.
### **removeAt**(key)
### **remove**(key)
Removes [key] and the value associated with it from the map. Returns the value.
If the key was not present, returns `null`.
### **values**