Expand description
Rust port of ltablib.c — Lua table standard library.
Provides: table.concat, table.insert, table.move, table.pack,
table.remove, table.sort, table.unpack.
C source: reference/lua-5.4.7/src/ltablib.c (430 lines, 14 functions)
Constants§
Functions§
- concat
- insert
- open_
table - pack
- Creates a new table
twith all arguments as integer keys andt.nset to the argument count. - remove
- sort
- tmove
- Copies elements
a1[f..e]intoa2[t..](ora1[t..]ifa2is absent). Copies in increasing order when safe, decreasing when ranges overlap. - unpack
- Pushes
t[i], t[i+1], …, t[j]and returns the count.