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

Method Copy

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

Copy moves the element at the index from into the valid index to without shifting any element (therefore replacing the value at that position). http://www.lua.org/manual/5.2/manual.html#lua_copy

(from, to int)

Source from the content-addressed store, hash-verified

1372//
1373// http://www.lua.org/manual/5.2/manual.html#lua_copy
1374func (l *State) Copy(from, to int) { l.move(to, l.indexToValue(from)) }
1375
1376// Version returns the address of the version number stored in the Lua core.
1377//

Callers 2

base.goFile · 0.80
pushGlobalFunctionNameFunction · 0.80

Calls 2

moveMethod · 0.95
indexToValueMethod · 0.95

Tested by

no test coverage detected