May 2017
Intermediate to advanced
416 pages
21h 33m
English
Indexes start at one, not zero:
z={"a","b","c"} z[1]="b" --This assignment will change the content of the table to {"b","b","c"}
However, you can initialize an array at any value:
nmap = {} for x=-1337, 0 do nmap[x] = 1 end
Keep in mind that all Lua libraries will stick to this convention.
Read now
Unlock full access