matchingBy

inline fun <T> ArgMatchersScope.matchingBy(function: (T) -> Boolean): T

Matches an argument by calling given function. Also, it returns function name on Any.toString.