compiler, runtime: implement delete builtin

This commit is contained in:
Ayke van Laethem
2018-10-20 16:18:55 +02:00
parent 7f60dd79ee
commit c0c1ccb381
6 changed files with 179 additions and 73 deletions
+2
View File
@@ -22,6 +22,8 @@ func main() {
readMap(testmap1, "data")
readMap(testmap2, "three")
readMap(testmap2, "ten")
delete(testmap2, "six")
readMap(testmap2, "seven")
}
func readMap(m map[string]int, key string) {