From f41a788cb424b31fd687253e8db3fd448a693b4a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Aug 2010 01:14:24 -0400 Subject: Added Lua autocompletion support. --- modules/lua/api/table.luadoc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/lua/api/table.luadoc (limited to 'modules/lua/api/table.luadoc') diff --git a/modules/lua/api/table.luadoc b/modules/lua/api/table.luadoc new file mode 100644 index 00000000..81f5a369 --- /dev/null +++ b/modules/lua/api/table.luadoc @@ -0,0 +1,22 @@ +--- Returns concatenated table elements i to j separated by sep. +function concat(table [, sep [, i [, j]]]) +--- +-- Executes f(index,value) over all elements of table, returns first non-nil of +-- f. +function foreach(table, f) +--- +-- Executes f(index,value) in sequential order 1 to n, returns first non-nil of +-- f. +function foreachi(table, f) +--- +-- Returns size of table, or n field, or table.setn value, or 1 less first index +-- with nil value. +function getn(table) +--- Insert value at location pos in table, default pos=n+1. +function insert(table, [pos,] value) +--- Removes element at pos from table, default pos=n. +function remove(table [, pos]) +--- Sets size of table, n field of table if it exists. +function setn(table, n) +--- Sorts in-place elements 1 to n, comp(v1,v2) true if v1