MCPcopy Create free account
hub / github.com/Shopify/go-lua / mathBinaryOp

Function mathBinaryOp

math.go:17–22  ·  view source on GitHub ↗
(f func(float64, float64) float64)

Source from the content-addressed store, hash-verified

15}
16
17func mathBinaryOp(f func(float64, float64) float64) Function {
18 return func(l *State) int {
19 l.PushNumber(f(CheckNumber(l, 1), CheckNumber(l, 2)))
20 return 1
21 }
22}
23
24func reduce(f func(float64, float64) float64) Function {
25 return func(l *State) int {

Callers 1

math.goFile · 0.85

Calls 2

CheckNumberFunction · 0.85
PushNumberMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…