"Fossies" - the Fresh Open Source Software Archive

Member "kotlin-1.3.61/idea/testData/wordSelection/LabeledReturn/0.kt" (26 Nov 2019, 143 Bytes) of package /linux/misc/kotlin-1.3.61.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Kotlin source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 fun test(list: List<Int>) {
    2     list.mapNotNull {
    3         if (it == 0) {
    4             <caret>return@mapNotNull null
    5         }
    6         it
    7     }
    8 }