For example, say we have this:
1 | Table 1 = { Table 2 = { } } |
If I only had Table2, how do I get Table1?
unfortunately, that's impossible :) you'll have to store that information somewhere else.
you can also look into a metatable
which is a little bit different but could still work depending on your use case. for example:
1 | cool = { "dope" } |
2 | boring = { "not dope" } |
3 | setmetatable (cool, boring) |
4 | print (cool, getmetatable (cool)) |
5 | -- {"dope"}, {"not dope"} |
it gets more complicated than that but those are the basics of it