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

reject

static fun <A : Any!> reject(@NonNull list: MutableList<A>, @NonNull predicate: Predicate<in A>): MutableList<A>!

For the given List of values returns the list of values that do not satisfy the given predicate.

Parameters

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

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

- value type

Return
MutableList<A>!: list of values without rejected ones