Full syntax:
s.any({ ch -> ch == 'd' })
We can make some simplifications.
First, since the last parameter is lambda, we can place it outside the parentheses and completely omit them when more parameters are left.
Secondly, for a lambda function literal with one parameter, you can omit the parameter declaration and specify this parameter using it name.
Thus, the simplified equivalent would be:
s.any { it == 'd' }
source share