4 ms·
Tables/dictionaries have been working great for Python and JavaScript, too. :D
by cpeterso 16y ago
Tables/dictionaries have been working great for Python and JavaScript, too. :D
- meric 16y agoPython and Javascript has arrays, classes, too.
- silentbicycle 16y agoLua tables combine arrays and dictionaries, though. They have a dictionary-style interface, but basically, if you use consecutive integer keys, that portion of the dictionary is stored in an array with O(1) access and can be iterated in order.