arrayName deleteRange [from, count]

Operand types

arrayName: Array
[from, count]: Array

Type of returned value

Description

Removes a range of array elements from the given array (modifies the original array, just like resize or set).

array: Boolean
from: Number - Array index to start selection from.
count: Number - Number of array elements to remove. If the selected range exceeds source array boundaries, selection will be made up to the end of the array.

Used In

Arma3

Example

_arr = [1,2,3,4,5,6];
_arr deleteRange [1,4];
hint str _arr; //[1,6]
Search OFPEC COMREF