Answers for "Lua How to check what index belongs to value"

Lua
0

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"]
Posted by: Guest on June-10-2020

Code answers related to "Lua How to check what index belongs to value"

Browse Popular Code Answers by Language