mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 19:17:47 +00:00
compiler, runtime: implement delete builtin
This commit is contained in:
Vendored
+2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user