RosettaCodeData/Task/Collections/Nim/collections-5.nim
2023-07-01 13:44:08 -04:00

7 lines
129 B
Nim

import tables
var l = initTable[string, int]()
l["foo"] = 12
l["bar"] = 13
var m = {"foo": 12, "bar": 13}.toTable
m["baz"] = 14