lua-users home
lua-l archive

Re: ipairs_remove - remove items from array while iterating it

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


Also, the line:
 if tbl[i] then
should probably be:
 if tbl[i] ~= nil then
if you want to iterate over sequences with booleans... [;-)]
Ashwin.

AltStyle によって変換されたページ (->オリジナル) /