BIS_fnc_removeIndex
Jump to navigation
Jump to search
Description
- Description:
/************************************************************ Remove Index Parameters: [array, index, <end index>] OR [array, [indexes]] Takes an array, and returns a new array with the specified index(es) removed. This takes the array passed in the first parameter, and returns an array that has the index number in the second parameter removed. If a third parameter is passed, then a range of indexes will be removed. Alternatively, you can pass an array of indexes to remove in the second parameter. This function doesn't touch the original array (that is passed as a parameter). Examples: _array = [1,["b"],"c",[4],"d"]; [_array, 2] call BIS_fnc_removeIndex; //returns: [1,["b"],[4],"d"] [_array, [0,1,3]] call BIS_fnc_removeIndex; //returns: ["c","d"] [_array, 2, 3] call BIS_fnc_removeIndex; //returns: [1,["b"],"d"] ************************************************************/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
Additional Information
- See also:
- See also needed
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