List.RemoveRange

语法

List.RemoveRange(list as list, index as number, optional count as nullable number) as list

关于

list 中删除从指定位置 index 起的 count 个值。

示例 1

在列表 { 1, 2, 3, 4, -6, -2, -1, 5 } 中删除从索引 4 起的 3 个值。

使用情况

List.RemoveRange({ 1, 2, 3, 4, -6, -2, -1, 5 }, 4, 3)

输出

{ 1, 2, 3, 4, 5 }

results matching ""

    No results matching ""