replace method

void replace(
  1. int index
)

Pops a value from the stack and moves it to index, replacing the value in its place.

Implementation

void replace(int index) => lua_replace(L, index);