Similar to this question, I have a table within a table; however, each entry within the sub-table. An example would be the following:
table = { a = {1, 2}, b = {3, 4}, c = {5, 6}}
With something like table = {a = "A", b = "B", c = "C"}, I can do table[a] and get "A", and with something like table = { {1, 2}, {3, 4}, {5, 6} and do table[1][1] to get 1, but when I try to combine the logic together and do table[a][1] to get 1 in my table, I get an error that says I'm trying to call a table object.
If someone could figure out what I'm doing incorrectly or if there's a way to call these tables in Lua, that would be great. Thanks!