What do you want to achieve? I want to delete a table from another table, or otherwise use a loop for.
What is the issue? I use a “for” loop to list all tables in another table, then take a value from the table in the table, but it doesn’t work when the table in the table has a key, but it does when there is no key. But without the key, you cannot delete the table with table.remove.
What solutions have you tried so far? I have searched the internet and the forum.
local MetaTable {
[Time] = {arguments, nil} -- The "for" loop does not work
{Time, arguments, nil} -- Can not use table.remove
}
for key, index in iparis (MetaTable) do
-- code
end