BIS fnc arrayInsert: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ") |
m (Text replacement - "|Game version=" to "|Game version= |gr1= Arrays |GROUP1") |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1= Arrays |GROUP1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 09:07, 6 October 2020
Description
- Description:
- GROUP1 ____________________________________________________________________________________________
- Execution:
- call
- Groups:
- Arrays
Syntax
- Syntax:
- Inserts the elements of one array into another, at a specified index. Neither arrays are touched by reference, a new array is returned.
- Parameters:
- array1: Array - array to insert into
- array2: Array - array to be inserted
- index: Number - insertion index
- Return Value:
- [array1, array2, index] call BIS_fnc_arrayInsert
Examples
- Example 1:
_result = [[0,1,2,3,4], ["a","b","c"], 1] call BIS_fnc_arrayInsert; // returns [0,"a","b","c",1,2,3,4]
Additional Information
- See also:
- Array - a new array
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