The right result

Report a typo

What is the result of this code?

fun main() {
    val listWords = listOf(listOf("anne", "michael"), listOf("caroline", "dimitry"), listOf("emilio", "francois"))

    println(listWords.flatMap { it.mapIndexedNotNull { index, value -> if (index % 2 == 0) value.uppercase() else null } })
}
Select one option from the list
___

Create a free account to access the full topic