Hard
val nombres = listOf(1, 2, 3) // [1, 2, 3]
val result = nombres.flatMap { listOf(it, it, it) }
println(result)
What value of result is displayed in the console?
Author: W3D TeamStatus: PublishedQuestion passed 801 times
Edit
9
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Concatenate two strings in Kotlin2
Write a Kotlin code that prints 7 to the console.2
Print the value of a nullable string in Kotlin3
Create a data class with a vip property implementing the Human interface3
Write a Kotlin program that evaluates an arithmetic expression.5
Kotlin: Compile the following code and see the error.5
Write a function that returns the maximum of two integers in Kotlin