Links
- PIL: Part II · Tables and Objects
- table.concat - Concatenates table items together into a string
- table.foreach - Applies a function to each item in a table
- table.foreachi - Applies a function to each item in a numerically-keyed table
- table.getn - Returns the size of a numerically-keyed table
- table.insert - Inserts a new item into a numerically-keyed table
- table.maxn - Returns the highest numeric key in the table
- table.remove - Removes an item from a numerically-keyed table
- table.setn - Sets the size of a table (http://www.gammon.com.au/scripts/doc.phpobsolete)
- table.sort - Sorts a table
- Metatables
Snippets
-- Sample definition. tbl = { top_left = { x = 1, y = 2, -- trailing comma is allowed }, bot_right = { x = 10, y = 20, -- trailing comma is allowed }, -- trailing comma is allowed }