9 lines
126 B
Lua
9 lines
126 B
Lua
function enum( t )
|
|
local result = {}
|
|
|
|
for index, name in pairs(t) do
|
|
result[name] = index
|
|
end
|
|
|
|
return result
|
|
end |