LUA_REPLACE(3) | Library Functions Manual | LUA_REPLACE(3) |
lua_replace
—
moves the top element into the given position, function
indicator [-1, +0, -]
#include
<lua.h>
void
lua_replace
(lua_State
*L, int index);
lua_replace
()
moves the top element into the given position (and pops it), without
shifting any element (therefore replacing the value at the given
position).
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_replace
() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 15, 2022 | Debian |