CBA_fnc_insert

Description

Inserts an array of elements to given array at the specified index.

Modifies the original array (Thanks BaerMitUmlaut)

Parameters

_arrayArray to insert at ARRAY
_indexIndex of the insertion <NUMBER>
_elementsElements to be inserted ARRAY

Returns

The modified array ARRAY

Examples

_arr = ["a", "b", "e"];
[_arr, 2, ["c", "d"]] call CBA_fnc_insert;
// _arr is now ["a", "b", "c", "d", "e"]

Author

654wak654

Array to read from [Array]
Close