summaryrefslogtreecommitdiff
path: root/meta/template/table.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/template/table.lua')
-rw-r--r--meta/template/table.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/template/table.lua b/meta/template/table.lua
new file mode 100644
index 00000000..43e709fb
--- /dev/null
+++ b/meta/template/table.lua
@@ -0,0 +1,44 @@
+---@class table
+table = {}
+
+---@param list table
+---@param sep string?
+---@param i integer?
+---@param j integer?
+---@return string
+function table.concat(list, sep, i, j) end
+
+---@overload fun(list: table, value: any)
+---@param list table
+---@param pos integer
+---@param value any
+function table.insert(list, pos, value) end
+
+---@param table table
+---@return integer
+function table.maxn(table) end
+
+---@param a1 table
+---@param f integer
+---@param e integer
+---@param t integer
+---@param a2 table?
+---@return table a2
+function table.move(a1, f, e, t, a2) end
+
+---@return table
+function table.pack(...) end
+
+---@param list table
+---@param pos integer?
+---@return any
+function table.remove(list, pos) end
+
+---@param list table
+---@param comp fun(a: any, b: any):boolean
+function table.sort(list, comp) end
+
+---@param list table
+---@param i integer?
+---@param j integer?
+function table.unpack(list, i, j) end