LUA_CONCAT(3) Library Functions Manual LUA_CONCAT(3)

lua_concatconcatenates the values at the top of the stack, pops them, and leaves the result at the top, function indicator [-n, +1, e]

#include <lua.h>

void
lua_concat(lua_State *L, int n);

() concatenates the n values at the top of the stack, pops them, and leaves the result at the top. Concatenation is performed following the usual semantics of Lua.

If n is 1, the result is the single value on the stack (that is, the function does nothing); if n is 0, the result is the empty string.

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The lua_concat() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 14, 2022 Debian