共用方式為


List.RemoveMatchingItems

語法

List.RemoveMatchingItems(
    list1 as list,
    list2 as list,
    optional equationCriteria as any
) as list

關於

從清單 list2 中移除所有在 list1 中出現的值。 若 list2 中的值不存在於 list1,則會傳回原始清單。 可以指定選擇性的方程準則值 equationCriteria 來控制等式測試。

範例 1

從 {1, 2, 3, 4, 5, 5} 建立不含 {1, 5} 的清單。

使用方式

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

輸出

{2, 3, 4}

方程式準則