string.sub (s, i [, j])sijijjstring.sub(s,1,j)sjstring.sub(s
lua_yieldk[-?, +?, e] int lua_yieldk (lua_State *L, int nresults, lua_KContext
luaL_getsubtable[-0, +1, e] int luaL_getsubtable (lua_State *L, int idx, const char *fname); Ensures
require (modname) Loads the given module. The function starts by looking into the package
file:lines (···) Returns an iterator function that, each time it is called, reads the file according to the given formats. When no format is given, uses "l" as a
3.3.2 – Chunks The unit of compilation of Lua is called a chunk. Syntactically, a chunk is simply a block: chunk ::= block Lua
lua_gethook[-0, +0, –] lua_Hook lua_gethook (lua_State *L); Returns the current hook function.
lua_compare[-0, +0, e] int lua_compare (lua_State *L, int index1, int index2, int op); Compares
lua_rawlen[-0, +0, –] size_t lua_rawlen (lua_State *L, int index); Returns the raw "length" of the value
math.pi The value of π.
Page 13 of 36