List.RemoveItems

语法

List.RemoveItems(list1 as list, list2 as list) as list

关于

list1 中删除在 list2 中出现的所有给定值。 如果 list1 中不存在 list2 中的值,则返回原始列表。

示例 1

从列表 { 1, 2, 3, 4, 2, 5, 5 } 中删除在列表 { 2, 4, 6 } 中出现的项。

使用情况

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

输出

{ 1, 3, 5, 5 }

results matching ""

    No results matching ""