<@U5LS1MHNF> You have it backwards: a `return` ins...
# announcements
n
@vishnur You have it backwards: a
return
instead of your
return@lambda
will print what you expect. Reason is that a unlabeled
return
always returns from the innermost
fun
. That allows Kotlin to have functions with lambdas which look like keywords (e.g.
with
). If you want to only return from a lambda, then you have to use the labeled
return
.