共用方式為


List.MatchesAll

語法

List.MatchesAll(list as list, condition as function) as logical

關於

若清單 true 中的所有值皆滿足條件函式 condition,則傳回 list;否則傳回 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