argWhere

inline fun <T : Any> argWhere(noinline predicate: (T) -> Boolean): T

Matches an argument that is matching the given predicate. null values will never evaluate to true.

Parameters

predicate

A function that returns true when given T matches the predicate.