Re: How do I make a table of tables in Nim?

2019-10-14 Thread mrhdias
Thanks :-)

Re: How do I make a table of tables in Nim?

2019-10-13 Thread Tiberium
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?

2019-10-13 Thread mrhdias
Example: several tables containing the details of books where each entry corresponds to a different book.