The right result of this function

Report a typo

What is the result of this code?

val names = listOf("Alice", "Bob", "Carol", "Dave", "Eve")
val sum = names.fold(0) { acc, name ->
        if (name.length >= 3) acc + name.length else acc
    }
Select one option from the list
___

Create a free account to access the full topic