static fun <A : Any!> anyOf(@NonNull list: MutableList<A>, @NonNull predicate: Predicate<in A>): Boolean
Checks if the given List of values contains any values that satisfy the given predicate.
list
- MutableList<A>: list of values that are going to be checked
predicate
- Predicate<in A>: predicate used for checking
Return
Boolean: true if at east one list item satisfies the predicate, false otherwise