Expert
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 647 times
Edit
6
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Kotlin
2
Write a function that returns the maximum of two integers in Kotlin2
Kotlin: Compile the following code and see the error.2
How to add a new element to a list of Kotlin data class1
Write a Kotlin program that evaluates an arithmetic expression.1
Create a data class with a vip property implementing the Human interface