I'm currently in need of some help, is there any way to make an array table (a regular one) into a "dictionary" one?
I need to convert this:
Into this:
Or is there any way by table.insert to make this kind of tables instead of the others?
Loops wouldn't solve the problem since I need to make this tables from scratch (t and v don't exist in my case, this is just an example)
I need to convert this:
Lua:
local t, v = {1,2,3,4}, {"1", "2", "3", "4"}
Lua:
local table = {1="1", 2="2", 3="3", 4="4")
Loops wouldn't solve the problem since I need to make this tables from scratch (t and v don't exist in my case, this is just an example)