|
|
||
|
probably because table.remove shifts down the following elements, thus changing index and position of the following elements, whereas setting some table element to nil does not mess with the association between indices and stored values.
>I find this interesting. Why are the results from table.remove different from table[index]=nil?I realise
See http://www.lua.org/manual/5.1/manual.html#pdf-table.remove
Gunnar