diff options
author | 2010-08-21 01:14:24 -0400 | |
---|---|---|
committer | 2010-08-21 01:14:24 -0400 | |
commit | f41a788cb424b31fd687253e8db3fd448a693b4a (patch) | |
tree | d733e35486108a29afcac5d84a9adfd03dcb30c4 /modules/lua/api/table.luadoc | |
parent | 0c1718a568f4db2661ab3fc960beba22ce5ff00c (diff) | |
download | textadept-f41a788cb424b31fd687253e8db3fd448a693b4a.tar.gz textadept-f41a788cb424b31fd687253e8db3fd448a693b4a.zip |
Added Lua autocompletion support.
Diffstat (limited to 'modules/lua/api/table.luadoc')
-rw-r--r-- | modules/lua/api/table.luadoc | 22 |
1 files changed, 22 insertions, 0 deletions
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<v2, default <. +function sort(table [, comp]) |