Join Slack
Communities
Powered by
and return@func?
# announcements
i
Ifvwm
05/25/2020, 1:36 AM
and return@func?
n
Nikky
05/25/2020, 2:10 AM
i assume this is within a lambda or scope function those functions return the last expression in them but you can also explicitely
return@func
just
return
does nto work in them because that might return you out of the current function and not just the lamda passed to a call
s
Shawn
05/25/2020, 2:11 AM
https://kotlinlang.org/docs/reference/returns.html
Open in Slack
Previous
Next