summaryrefslogtreecommitdiff
path: root/meta/template/table.lua
blob: 8629d1dd8a4a2cc0b970b3dae3080a1f682e59e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---@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

return table