What is the result of applying the count function in this code?
val namesLength = emptyList<String>().reduce { acc, name ->
if (name.length >= 3) acc + name.length else acc
}
println(namesLength)What is the result of applying the count function in this code?
val namesLength = emptyList<String>().reduce { acc, name ->
if (name.length >= 3) acc + name.length else acc
}
println(namesLength)Create a free account to access the full topic