What is the result of this code?
val listOfNames = listOf("Pablo", "John", "Jane", "Mary", "Peter")
println(
listOfNames.firstNotNullOf { item -> item.length.takeIf { it >= 5 } }
)What is the result of this code?
val listOfNames = listOf("Pablo", "John", "Jane", "Mary", "Peter")
println(
listOfNames.firstNotNullOf { item -> item.length.takeIf { it >= 5 } }
)Create a free account to access the full topic