You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a function wich returns an array and you want to know the minimum or maximum value of that returned array, then you can't use the function as the parameter for min() or max(). You always have to do an additional step of saving into a variable.
func TestFunction(byref A)
TestFunction = 5*A
end func
A = seq(1,3,3)
Result1 = min(TestFunction(A))
print Result1 'Prints [5,10,15]
'Workaround
temp = TestFunction(A)
Result2 = min(temp)
print Result2 'Prints 5
The text was updated successfully, but these errors were encountered:
If you have a function wich returns an array and you want to know the minimum or maximum value of that returned array, then you can't use the function as the parameter for min() or max(). You always have to do an additional step of saving into a variable.
The text was updated successfully, but these errors were encountered: