{"name":"BIS_fnc_arrayInsert","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"array1","type":"Array","optional":false,"default":null,"description":"array to insert into","types":["Array"],"since":null,"text":"array1: Array - array to insert into"},{"name":"array2","type":"Array","optional":false,"default":null,"description":"array to be inserted","types":["Array"],"since":null,"text":"array2: Array - array to be inserted"},{"name":"index","type":"Number","optional":false,"default":null,"description":"insertion index","types":["Number"],"since":null,"text":"index: Number - insertion index"}],"returns":{"type":"Array","types":["Array"],"description":"a new array","text":"Array - a new array"}}],"examples":[{"text":"```sqf\nprivate _result = [[0,1,2,3,4], [\"a\",\"b\",\"c\"], 1] call BIS_fnc_arrayInsert; // returns [0,\"a\",\"b\",\"c\",1,2,3,4]\n```","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]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Arrays","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}