pushBackUnique: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=") |
Lou Montana (talk | contribs) m (Text replacement - " \|p[0-9]{1,2}=([^ ]+) + \| *(\[\[Numb.+) * " to " |p$1=$2 |r1=$3 ") |
||
Line 14: | Line 14: | ||
|p1= array: [[Array]] | |p1= array: [[Array]] | ||
| | |p element: [[Anything]]=[[Number]] - index of inserted element or -1 | ||
| | |r1= | ||
|x1= <code>_arr = [1,2,3]; | |x1= <code>_arr = [1,2,3]; |
Revision as of 03:39, 13 June 2021
Description
- Description:
- Description needed
- Groups:
- Arrays
Syntax
- Syntax:
- array pushBackUnique element
- Parameters:
- array: Array
- Return Value:
- Return value needed
Examples
- Example 1:
_arr = [1,2,3]; _index = _arr pushBackUnique 3; hint str [_index, _arr]; //[-1,[1,2,3]]
- Example 2:
_arr = [1,2,3]; _index = _arr pushBackUnique 4; hint str [_index, _arr]; //[3,[1,2,3,4]]
Additional Information
- See also:
- pushBackselectsetresizereversecountfindinforEachdeleteAtdeleteRangeappendsortarrayIntersectapplyBIS_fnc_arrayPushStackBIS_fnc_arrayPush
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