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

anyOf

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.

Parameters

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

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

- value type

Return
Boolean: true if at east one list item satisfies the predicate, false otherwise