fpv/source/utilities/enum.lua
2024-06-01 16:52:11 +03:00

9 lines
118 B
Lua

function enum( t )
local result = {}
for index, name in pairs(t) do
result[name] = index
end
return result
end