Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Created October 14, 2017 17:39
Show Gist options
  • Save Yardanico/369b0ad221edc9ea4a20d78229659360 to your computer and use it in GitHub Desktop.
Save Yardanico/369b0ad221edc9ea4a20d78229659360 to your computer and use it in GitHub Desktop.
import tables
var a = initTable[string, Table[string, string]]()
a["data1"] = {"a": "b", "c": "d"}.toTable()
# or
a["data1"] = initTable[string, string]()
a["data1"]["a"] = "b"
a["data1"]["c"] = "d"
echo a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment