MCPcopy Index your code
hub / github.com/yuin/gopher-lua / Concat

Method Concat

state.go:1979–1987  ·  view source on GitHub ↗

* }}} */ * binary operations {{{ */

(values ...LValue)

Source from the content-addressed store, hash-verified

1977/* binary operations {{{ */
1978
1979func (ls *LState) Concat(values ...LValue) string {
1980 top := ls.reg.Top()
1981 for _, value := range values {
1982 ls.reg.Push(value)
1983 }
1984 ret := stringConcat(ls, len(values), ls.reg.Top()-1)
1985 ls.reg.SetTop(top)
1986 return LVAsString(ret)
1987}
1988
1989func (ls *LState) LessThan(lhs, rhs LValue) bool {
1990 return lessThan(ls, lhs, rhs)

Callers 1

TestConcatFunction · 0.45

Calls 5

LVAsStringFunction · 0.85
stringConcatFunction · 0.70
PushMethod · 0.65
TopMethod · 0.45
SetTopMethod · 0.45

Tested by 1

TestConcatFunction · 0.36