I need to know the keys and values that are being inserted in a sahred table. The table is populated by a multi threaded application. import sharedtables var table: SharedTable[string, string] init(table) table["a"] = "x" table["b"] = "y" table["c"] = "z" # To do this I need to know the keys. But I don't know them in advance. echo "a ", table.mget("a") echo "b ", table.mget("b") echo "c ", table.mget("c") # My Problem: How to make this work?? for k, v in table.pairs: echo $k, " ", $v Run
- How to iterate over a SharedTable? mrhdias
- How to iterate over a SharedTable? ElegantBeef
- How to iterate over a SharedTable? mrhdias
- How to iterate over a SharedTable? b3liever