RosettaCodeData/Task/Collections/Nim/collections-5.nim

8 lines
129 B
Nim
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
import tables
var l = initTable[string, int]()
l["foo"] = 12
l["bar"] = 13
var m = {"foo": 12, "bar": 13}.toTable
m["baz"] = 14