BIS_fnc_arrayInsert
- Arma 3 v0.50
- First in Arma 2 v1.00
Function · Markdown · JSON · original wiki page
Description
Inserts the elements of one array into another, at a specified index. Neither arrays are touched by reference, a new array is returned.
Syntax
[array1, array2, index] call BIS_fnc_arrayInsert
Parameters:
array1: Array - array to insert intoarray2: Array - array to be insertedindex: Number - insertion index
Returns: Array - a new array
Examples
Example 1
private _result = [[0,1,2,3,4], ["a","b","c"], 1] call BIS_fnc_arrayInsert; // returns [0,"a","b","c",1,2,3,4]