nested table with []

Run Settings
LanguageNim
Language Version
Run Command
import tables type InnerTable = Table[string, string] NestedTable = Table[int, InnerTable] func newNestedTable(): NestedTable = initTable[int, InnerTable]() func newEmptyInnerTable(): InnerTable = initTable[string, string]() func `[]`(self: var NestedTable, key: int): var InnerTable = self.mgetOrPut(key, newEmptyInnerTable()) var nestT = newNestedTable() nestT[0]["a"] = "b" echo nestT
Editor Settings
Theme
Key bindings
Full width
Lines