delete for maps

This commit is contained in:
Ginger Bill
2017-02-19 11:50:42 +00:00
parent 758dd9ba16
commit 3cec2550d9
5 changed files with 60 additions and 16 deletions

View File

@@ -8,6 +8,13 @@
#import "halloc.odin";
main :: proc() {
m: map[int]int;
m[123] = 312;
fmt.println(m[123]);
delete(m, 123);
fmt.println(m[123]);
/*
/*
Version 0.1.1