You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kotlin does not use return statements inside lambdas in the same way than Swift. In Kotlin, the last expression is automatically returned, and the return expression is invalid unless used with return@<function_name>.
Kotlin does not use
return
statements inside lambdas in the same way than Swift. In Kotlin, the last expression is automatically returned, and thereturn
expression is invalid unless used withreturn@<function_name>
.Examples:
Should just be
And returns inside the body like:
The text was updated successfully, but these errors were encountered: