This first edition was written for Lua 5.0. While still largely relevant for later versions, there are some differences.
The third edition targets Lua 5.2 and is available at Amazon and other bookstores.
By buying the book, you also help to support the Lua project.


19 – The Table Library

The table library comprises auxiliary functions to manipulate tables as arrays. One of its main roles is to give a reasonable meaning for the size of an array in Lua. It also provides functions to insert and remove elements from lists and to sort the elements of an array.