-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CBA_fnc_selectBest function #1244
Conversation
There should be a speed diff tho 🤔 if/then evaluation and opening a new scope every iteration should be more expensive than creating an array and running a sort. |
I like the alternative in the opening post more for readability alone. |
Alt way has problems with undefined in scheduled (Nevermind: Both have similar problem)
You also get |
RETNIL(_var) macro to get around the |
One problem I have with this is that the variables |
Just to note, criteria function can return special value of -1e99 and item will be ignored |
Select best element from an array
Alternate way, but I found no real speed diff,