getting position of an element in a lua array code example
Example: Lua How to check what index belongs to value
local index={}
for k,v in pairs(values) do
index[v]=k
end
return index["a"]
local index={}
for k,v in pairs(values) do
index[v]=k
end
return index["a"]