Module:auto-subtable
Jump to navigation
Jump to search
- The following documentation is located at Module:auto-subtable/documentation. [edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
local auto_subtable_mt = {
__index = function(self, key)
local val = {}
self[key] = val
return val
end
}
local function un_auto_subtable(t)
t.un_auto_subtable = nil
return setmetatable(t, nil)
end
return function(t)
t = t or {}
t.un_auto_subtable = un_auto_subtable
return setmetatable(t, auto_subtable_mt)
end