{"name":"BIS_fnc_arrayInsert","title":"BIS fnc arrayInsert","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_arrayInsert","revid":327948,"updated":"2022-07-13T12:52:47Z","groups":["Arrays"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Inserts the elements of one array into another, at a specified index. Neither arrays are touched by reference, a new array is returned.","syntaxes":[{"syntax":"[array1, array2, index] call BIS_fnc_arrayInsert","params":[{"name":"array1","type":"Array","description":"array to insert into","type_expr":"Array"},{"name":"array2","type":"Array","description":"array to be inserted","type_expr":"Array"},{"name":"index","type":"Number","description":"insertion index","type_expr":"Number"}],"returns":{"type":"Array","type_expr":"Array","description":"a new array"}}],"examples":[{"code":["private _result = [[0,1,2,3,4], [\"a\",\"b\",\"c\"], 1] call BIS_fnc_arrayInsert; // returns [0,\"a\",\"b\",\"c\",1,2,3,4]"]}]}