fpv/source/utilities/enum.lua

9 lines
126 B
Lua
Raw Permalink Normal View History

2024-06-01 22:46:36 +03:00
function enum( t )
local result = {}
for index, name in pairs(t) do
result[name] = index
end
return result
2024-06-01 16:52:11 +03:00
end