lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jun 20, 2016 at 4:36 PM, Laurent FAILLIE <l_faillie@yahoo.com> wrote:
Hello,

I'm facing an issue with table.remove when I would like to remove the last element of a table.

You should change

 table.remove(tbl, i)

to 

 tbl[i] = nil

e