feat: add enums

This commit is contained in:
Kazhnuz 2021-05-05 13:15:12 +02:00
parent 30a16b4e3f
commit 4d3687f627

View file

@ -0,0 +1,9 @@
return function(tbl)
local length = #tbl
for i = 1, length do
local v = tbl[i]
tbl[v] = i
end
return tbl
end