|
> for k,v in pairs(t) do print(k, v) end
1 nil
2 nil
3 nil
4 nil
t[i] = undef -- remove a key from a table
t[i] == undef -- test whether a table has a key
t[i] ~= undef -- test whether a table has a key
Any other use of 'undef' gives a syntax error.