LUA_REMOVE(3) Library Functions Manual LUA_REMOVE(3)

lua_removeremoves the element at the given index, function indicator [-1, +0, -]

#include <lua.h>

void
lua_remove(lua_State *L, int index);

() removes the element at the given valid index, shifting down the elements above this index to fill the gap. Cannot be called with a pseudo-index, because a pseudo-index is not an actual stack position.

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

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

July 15, 2022 Debian