How to find out whether there is a specific key for a given Lua table besides traversing the whole table?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: How to find out whether there is a specific key for a given Lua table besides traversing the whole table?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: 2021年1月14日 18:02:01 +0800
How to find out whether there is a specific key for a given Lua table?
I know that traversing the whole table could achieve this goal, but
it's not an efficient method. Is there any better method?