import tables
var myTable = initTable[string, seq[string]]()
myTable["keyA"] = newseq[string]()
myTable["keyA"].add("a string")
Compiling the above yields:
main.nim(6, 7) Error: for a 'var' type a variable needs to be passed
I changed the table's value-type to var seq[string] but I don't believe I understand the heart of the issue.
What's the recommended way to make, and interact with, a table whose values are references to a sequence?
myTable.mget("keyA").add("a string")