[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: filter an array in place
- From: liam mail <liam.list@...>
- Date: Fri, 14 Jan 2011 11:46:33 +0000
In that case it really needs a special note adding about when iterating.
On 14 January 2011 11:43, Gunnar Zötl <firstname.lastname@example.org>
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