(f func(float64, float64) float64)
| 15 | } |
| 16 | |
| 17 | func 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 | |
| 24 | func reduce(f func(float64, float64) float64) Function { |
| 25 | return func(l *State) int { |
no test coverage detected
searching dependent graphs…