BIS fnc consolidateArray: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=") |
||
Line 9: | Line 9: | ||
|Finds duplicities in the given array of anything and consolidates them into an array of sub-arrays | |Finds duplicities in the given array of anything and consolidates them into an array of sub-arrays | ||
| array call [[BIS_fnc_consolidateArray]] | |s1= array call [[BIS_fnc_consolidateArray]] | ||
|p1= array: [[Array]] - array of anything | |p1= array: [[Array]] - array of anything |
Revision as of 22:44, 12 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- array call BIS_fnc_consolidateArray
- Parameters:
- array: Array - array of anything
- Return Value:
- Return value needed
Examples
- Example 1:
["apple","apple","pear","pear","apple"] call BIS_fnc_consolidateArray; // Return: [["apple",3],["pear",2]]
- Example 2:
["apple","apple",1,1,nil,nil] call BIS_fnc_consolidateArray; // Return: [["apple",2],[1,2],[any,2]]
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note