BIS fnc arrayInsert: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= arma2 | |||
|version1= 1.00 | |||
| | |game2= arma2oa | ||
|version2= 1.50 | |||
|1.00 | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
|gr1= Arrays | |||
Inserts the elements of one array into another, at a specified | |descr= Inserts the elements of one array into another, at a specified index. Neither arrays are touched by reference, a new array is returned. | ||
index. | |||
|s1= [array1, array2, index] call [[BIS_fnc_arrayInsert]] | |||
|p1= array1: [[Array]] - array to insert into | |||
|p2= array2: [[Array]] - array to be inserted | |||
| | |p3= index: [[Number]] - insertion index | ||
| | |r1= [[Array]] - a new array | ||
|x1= <sqf>private _result = [[0,1,2,3,4], ["a","b","c"], 1] call BIS_fnc_arrayInsert; // returns [0,"a","b","c",1,2,3,4]</sqf> | |||
|x1= < | |||
|seealso= | |||
}} | }} | ||
Latest revision as of 13:52, 13 July 2022
Description
- Description:
- Inserts the elements of one array into another, at a specified index. Neither arrays are touched by reference, a new array is returned.
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- [array1, array2, index] call BIS_fnc_arrayInsert
- Parameters:
- array1: Array - array to insert into
- array2: Array - array to be inserted
- index: Number - insertion index
- Return Value:
- Array - a new array
Examples
- Example 1:
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