I need to check if a string is present in a list, and call a function which accepts a boolean accordingly.
Is it possible to achieve this with a one liner?
The c
this should work also with different predicate
myFunction(strings.find( _ == mystring ).isDefined)