RosettaCodeData/Task/Collections/Nim/collections-5.nim
2016-12-05 23:44:36 +01: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