Closed timmyimprint closed 3 years ago
max is variadic max(AGG311, AGG312, AGG313) > 1000
works
edit:
sry. I missed an issue in your function. arg
is not the array of floats it's an []interface{}
where ich value can be casted to float64
this is an example from our test cases
Function("sum", func(arguments ...interface{}) (interface{}, error) {
sum := 0.0
for _, v := range arguments {
sum += v.(float64)
}
return sum, nil
}
I get the error "panic: interface conversion: interface {} is []interface {}, not []float64"
Is it not possible to define an array with variables and use a function on it?