format
typescript
List.RemoveRange(index, count)class: List
description
Removes a specified range of elements from the list.
parameter
| param_name | type | description |
|---|---|---|
| index | number | The starting position index. |
| count | number | The number of elements to remove. |
reture
| type | description |
|---|---|
void |
code example
typescript
let list = new List<Number>(Number);
list.AddRange([100, 200,300]);
// Remove two elements starting from the element at index 1
list.RemoveRange(1,2);