List.Difference
List.Difference(list1 as list, list2 as list, optional equationCriteria as any) as list
关于
返回列表 list1
中未出现在列表 list2
中的项。 支持重复值。 可以指定可选相等条件值 equationCriteria
来控制相等测试。
示例 1
查找列表 { 1, 2, 3, 4, 5 } 中未出现在 { 4, 5, 3 } 中的项。
使用情况
List.Difference({ 1, 2, 3, 4, 5 }, { 4, 5, 3 })
输出
{ 1, 2 }
示例 2
查找列表 { 1, 2 } 中未出现在 { 1, 2, 3 } 中的项。
使用情况
List.Difference({ 1, 2 }, { 1, 2, 3 })
输出
{ }