Replace the lambda expression with a function reference

Report a typo

Here is an instance of a lambda expression that takes a string and converts all characters to upper case:

val uppercase:(String) -> String = {s -> s.uppercase()}

Change the lambda expression (the right part) to a function reference which does the same.

Select one option from the list
___

Create a free account to access the full topic