supaham
07/20/2016, 11:52 PMreturn@lambda
. Where you can specify where the return point is. For example, in a function:
fun myBooleanReturningFunction(): Boolean {
val myLambda = lambda@ {
return@lambda
}
return true
}
If I don't specify the @lambda in the closure, it will error out because it thinks you're returning for the function myBooleanReturningFunction