-
Notifications
You must be signed in to change notification settings - Fork 148
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 2 New Array Functions #143
Conversation
add getLowestVaule
@@ -27,6 +27,18 @@ class CfgFunctions | |||
description = "A function used to return the element counts in an array. Parameters: Array Example: _types = [0,0,1,1,1,1] call CBA_fnc_getArrayElements Returns: Array element counts (for above example, return would be [0,2,1,4]) Author: Rommel && sbsmac"; | |||
file = "\x\cba\addons\arrays\fnc_getArrayElements.sqf"; | |||
}; | |||
// CBA_fnc_getHightestVaule | |||
class getHightestVaule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be getHighestValue
, check spelling (not just here).
These functions could have much shorter names:
|
…d error handling, small logic fixes and added tests
General update to findMin and findMax
(end) | ||
|
||
Returns: | ||
_max: smallest value in array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"_min"
Improve exit Condition
ok done |
// CBA_fnc_findMax | ||
class findMax | ||
{ | ||
description = "Find smallest numeric value with index in an array."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the description for findMin below.
Documentation fixes
The merge conflicts in addons/arrays/test.sqf and addons/arrays/CfgFunctions.hpp need to be fixed. |
Conflicts: addons/arrays/CfgFunctions.hpp addons/arrays/test.sqf
ok fixed |
add getHightestVaule
add getLowestVaule