exists
inline fun <A> A?.exists(f: (A) ->
Boolean
):
Boolean
Returns the result of $f applied on the $receiver.
Example usage:
1.exists{ it > 5 } // false
1.exists{ it < 5 } // true
Parameters
f
- function to apply in the right side value.
Receiver the vlaue which $f will be appliead on.
Return the result of applying $f on the right side value otherwise false.