https://kotlinlang.org logo
e

elizarov

02/07/2017, 9:22 PM
I‘ve actually ran into few cases myself where I wanted a loop to be an expression for more readable and concise code. It should be
break value
. That is the only right and backwards compatible way to introduce this feature in Kotlin.