aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/api/table.luadoc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua/api/table.luadoc')
-rw-r--r--modules/lua/api/table.luadoc22
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])