diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/code/demo.odin b/code/demo.odin index edcdaa49f..5c1ef40c0 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -12,9 +12,14 @@ main :: proc() { Value :: type f32; - m0: map[int]Value; - m1: map[string]Value; - m2: map[f32]Value; + m: map[int]Value; + m[123] = 345.0; + x, ok := m[123]; + if ok { + fmt.println(x); + } + + // fm: map[128, int]f32; /* |