Programming in Lua - 11
Programming in Lua - 11
Programming in Lua
Part II. Tables and Objects
Chapter 11. Data Structures
11 – Data Structures
Tables in Lua are not a data structure;
they are the data structure.
All
structures that other languages offer---arrays,
records, lists, queues, sets---are
represented with tables in Lua.
More to the point,
tables implement all these
structures efficiently.