Hi! I have a function that takes a lambda as a pa...
# getting-started
b
Hi! I have a function that takes a lambda as a parameter. When I declare it I can use these 2 syntaxes, but I don’t see the point of the 2nd one:
Copy code
fun foo(onFooResponse: (String) -> Unit)

fun foo(onFooResponse: (foo: String) -> Unit)