Re: How do I make a table of tables in Nim?
Thanks :-)
Re: How do I make a table of tables in Nim?
I really think you should use objects for this, but this will work anyway: import tables var books = newTable[string, TableRef[string, string]]() books["one"] = newTable[string, string]() books["one"]["price"] = "150" echo books["one"]["price"]
How do I make a table of tables in Nim?
Example: several tables containing the details of books where each entry corresponds to a different book.