lua-users home
lua-l archive

Re: Is this NEXT behavior expected or lucky coincidence?

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


2015年04月14日 21:54 GMT+02:00 <tonyp@acm.org>:
> Examples where it wouldn't work?)
Any table for which next(t,#t) is nil will look empty to kpairs.
For example:
s={[100]=0}; for k=1,100 do s[k]=k end

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