4 ms·
If I'm not mistaken, Lua let's you assign any key (index) you want.
by warlog 6y ago
If I'm not mistaken, Lua let's you assign any key (index) you want.
- Jtsummers 6y agoLua's arrays/tables are more like hash tables, with an ability (still true? been a while since I've done anything with Lua) to optimize if you use a contiguous range starting at 1 for the key. But yes, you can use an arbitrary key.
- hobby-coder-guy 6y agoStill true.
- ogogmad 6y ago(lets not let's)