Match elements and their functions

Report a typo

Match the elements of the following code snippet (which uses StringBuilder to perform multiple string manipulation operations) to their functions:

fun builderString(
    builder: StringBuilder.(String) -> Unit
): String {
    val stringBuilder = StringBuilder()
    stringBuilder.builder("")
    return stringBuilder.toString()
}
Match the items from left and right columns
builder
StringBuilder.
String
(String) -> Unit
Lambda function with a receiver
Ouput Parameter
Extension function
Receiver
___

Create a free account to access the full topic