len method

int len(
  1. int index
)

Returns the length of the value at index, equivalent to the # operator.

This function may invoke the __length metamethod, to avoid this behavior use LuaState.rawlen.

Implementation

int len(int index) => luaL_len(L, index);