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}