I was messing around with Lua tables and I noticed:
local t1 = {1, 5, nil, 10}
local t2 = {1, 5, nil, 10, nil}
print(t1[5], t2[5]) --> nil nil
print(#t1, #t2) --> 4 2
I was expecting the length of both tables to be 4, but the length of t2
turned out to be 2. Can anyone explain this?