Skip to main content

Module table_lib

Module table_lib 

Source
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§

TABLE_FUNCS
C: tab_funcs[] — the function registration table for require("table").

Functions§

concat
C: tconcat(L) — implements table.concat(t [, sep [, i [, j]]]).
insert
C: tinsert(L) — implements table.insert(t [, pos,] v).
open_table
C: luaopen_table(L) — open the table library.
pack
C: tpack(L) — implements table.pack(...).
remove
C: tremove(L) — implements table.remove(t [, pos]).
sort
C: sort(L) — implements table.sort(t [, comp]).
tmove
C: tmove(L) — implements table.move(a1, f, e, t [, a2]).
unpack
C: tunpack(L) — implements table.unpack(t [, i [, j]]).