MCPcopy Create free account
hub / github.com/Shopify/goluago / luaArray

Function luaArray

util/deep_pull.go:88–94  ·  view source on GitHub ↗
(l *lua.State)

Source from the content-addressed store, hash-verified

86const arrayMarkerField = "_is_array"
87
88func luaArray(l *lua.State) int {
89 l.NewTable()
90 l.PushBoolean(true)
91 l.SetField(-2, arrayMarkerField)
92 l.SetMetaTable(-2)
93 return 1
94}
95
96func isArray(l *lua.State, idx int) bool {
97 if !l.IsTable(idx) {

Callers 1

recurseOnFuncSliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected