What is the result of applying groupingBy in this code?
val names = listOf("anne", "dimitry", "michael", "alice", "dany")
println(names.groupingBy { it.length }.fold(0) { acc, name -> acc + name.length })What is the result of applying groupingBy in this code?
val names = listOf("anne", "dimitry", "michael", "alice", "dany")
println(names.groupingBy { it.length }.fold(0) { acc, name -> acc + name.length })Create a free account to access the full topic