List.MatchesAll
语法
List.MatchesAll(list as list, condition as function) as logical
关于
如果列表 list
中的所有值均满足条件函数 condition
,则返回 true
,否则返回 false
。
示例 1
确定是否列表 { 11, 12, 13 } 中所有值都大于 10。
使用情况
List.MatchesAll({ 11, 12, 13 }, each _ > 10)
输出
true
示例 2
确定是否列表 { 1, 2, 3 } 中所有值都大于 10。
使用情况
List.MatchesAll({ 1, 2, 3 }, each _ > 10)
输出
false