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
EDIT2: For the max function its the same like the min function, only the first value is taken into account
Hehe, exactly that's the point: The call to the min() and max() is wrong as done here, it must be max((3, 7, 2)) rather than max(3, 7, 2). Latter one is a call with three parameters, but currently only the first parameter is taken and converted into a list, as the function accepts a list.
Anyway, this behavior is wrong. It should either be considered to take all parameters passed into account, or throw an error message when calling a function with too many parameters.
This test case:
does not work in logics-js but it works in logics-py
The problem seems to be with the max function, because the min function works.
Here is a screenshot with the case in logics-js:
EDIT: The min function is not working correct too.
It seems that only the first value is taken into account
EDIT2: For the max function its the same like the min function, only the first value is taken into account
The text was updated successfully, but these errors were encountered: