Join Slack
Powered by
Hi! I have a function that takes a lambda as a pa...
# getting-started
b
bod
12/08/2016, 2:22 PM
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)
2
Views
Open in Slack
Previous
Next