sdk-common / com.tomtom.online.sdk.common.functional.collections / Iterables / anyOf

anyOf

static fun <A : Any!> anyOf(@NonNull iterable: MutableIterable<A>, @NonNull predicate: Predicate<in A>): Boolean

Checks if any values of provided iterable satisfy given predicate

Parameters

iterable - MutableIterable<A>: list of values that are going to be checked

predicate - Predicate<in A>: predicate used for checking

- value type

Return
Boolean: true if any list items satisfy the predicate, false otherwise