tests parts of expr at level level.
represents an operator form of AnyTrue that can be applied to an expression.
- AnyTrue[expr,test] and AnyTrue[expr,test,level] only evaluate as many test[ei] as are necessary to determine the result.
- AnyTrue[list,test] is equivalent to AnyTrue[list,test,1].
- AnyTrue[test][list] is equivalent to AnyTrue[list,test].
Basic Examples (4)
Check if any element of a list satisfies a condition:
Check if any element of a matrix satisfies a condition:
Check if any value of an association satisfies a condition:
A symbolic result may be returned:
TrueQ may be used to avoid getting a symbolic result:
Properties & Relations (4)
Introduced in 2014