lua-users home
lua-l archive

lua tables/keys

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


Hello!
How to know to be a key in lua table? Without use pairs/ipairs/next?
a = {a,b,c,d}
a.a => nil, but key "a" present in table!
a.f => nil, but key "f" not in table!
Than differ a.a and a.f??? (a.a - key in the table a, a.f - not)
Thanks.
--
Alexandr

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