MCPcopy Index your code
hub / github.com/Shopify/go-lua / Length

Method Length

lua.go:1469–1469  ·  view source on GitHub ↗

Length of the value at index; it is equivalent to the # operator in Lua. The result is pushed on the stack. http://www.lua.org/manual/5.2/manual.html#lua_len

(index int)

Source from the content-addressed store, hash-verified

1467//
1468// http://www.lua.org/manual/5.2/manual.html#lua_len
1469func (l *State) Length(index int) { l.apiPush(l.objectLength(l.indexToValue(index))) }
1470
1471// Pop pops n elements from the stack.
1472//

Callers 1

LengthExFunction · 0.80

Calls 3

apiPushMethod · 0.95
objectLengthMethod · 0.95
indexToValueMethod · 0.95

Tested by

no test coverage detected