setI method

void setI(
  1. int index,
  2. int n
)

Does the equivalent to t[n] = v, where t is the value at the given index and v is the value on the top of the stack.

Lua Docs.

Implementation

void setI(int index, int n) => lua.lua.lua_seti(pointer, index, n);