Array.any
anycondition
Group: Logical
Documentation
Checks whether a predicate holds for at least one element of self array.
Arguments
condition
: AFilter_Condition
or a predicate function to test each element.
Examples
Checking if any element of the array is larger than 3.
[1, 2, 3, 4, 5].to_array.any (..Greater than=3)
Checking if any element of the array is even.
[1, 2, 3, 4, 5].to_array.any (x-> x%2 == 0)