summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/resources/inlayProviders/kotlin.lambdas.hints/hints.lambda.return.kt
blob: b0072d19da9ffe51c55218bb9f8f8e4068af6551 (plain)
1
2
3
4
5
6
7
8
9
10
fun numbers(): String {
    val numbers = StringBuilder()
    return with(numbers) {
        // "with" structure starts here
        for (letter in '0'..'9') {
            append(letter)
        }
        toString() // used as the return value
    }
}