Nearly implement dynamics map, missing insertion
This commit is contained in:
1 parent
00c7489157
commit
9f2d9b596d
6 files changed
+329
-88
No files matched your search
+4
-3
@@ -13,9 +13,10 @@
|
||||
main :: proc() {
|
||||
Value :: type f32;
|
||||
m: map[int]Value;
|
||||
m[123] = 345.0;
|
||||
x, ok := m[123];
|
||||
if ok {
|
||||
reserve(^m, 16);
|
||||
defer free(m);
|
||||
// m[123] = 345.0;
|
||||
if x, ok := m[123]; ok {
|
||||
fmt.println(x);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user