-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtablex-ce.lua
More file actions
37 lines (37 loc) · 1.77 KB
/
tablex-ce.lua
File metadata and controls
37 lines (37 loc) · 1.77 KB
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
registerCodeEditorInfos('tablex', [[
table t = table.add(table t1, table t2, ...)
table tableOfTables = table.batched(table t, int n)
table copy = table.clone(table t)
int comparison = table.compare(table a, table b, function compareFunc = nil)
string s = table.concat(table t, string sep = '', int start = 1, int end = #t)
table copy = table.deepcopy(table t, map opts = {}, table copies = {})
bool equal = table.eq(table a, table b)
table.extend(table t, table t1, ...)
table t1 = table.items(table t, map opts = nil)
int? index = table.find(table t, any item, function equalsFunc = nil)
table tbl1 = table.flatten(table tbl, map opts = {})
table tbl1 = table.collapse(table tbl, depth = 1)
int n = table.getn(table t)
function fn = table.index(table t)
table.insert(table t, [int pos], any value)
table t1 = table.invert(table t, map opts = {errorOnClash = true})
bool arr = table.isarray(table t)
string s = table.join(table t, string sep = ', ', map opts = {}, visited = {})
table keys = table.keys(table t)
table t1 = table.filter(table t, map opts = {matchKeyPrefix = '', stripKeyPrefix = false})
table.move(table a, int f, int e, int t, table ab = a)
table t = table.pack(...)
table.print(table t)
any removed = table.remove(table t, int pos)
table t = table.rep(any value, int size)
table reversed = table.reversed(table t)
table.setn(table t, int n)
table sliced = table.slice(table t, int first = 1, int last = #t, int step = 1)
table.sort(table t, function compareFunc = nil)
table t1 = table.sorted(table t, function compareFunc = nil)
string s = table.tostring(table t, string sep, map opts = {}, visited = {})
table tbl1 = table.unflatten(table tbl, map opts = {})
... = table.unpack(table t)
... = table.unpackx(table arg, int n, int i = 1)
table t = table.update(table t1, table t2, ...)
]])