The result of code

Report a typo

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 })
Select one option from the list
___

Create a free account to access the full topic