Can I apply the `reduce` function with an initial ...
# getting-started
s
Can I apply the
reduce
function with an initial value? For example I want to calculate the character count of a list of string:
Copy code
val list = listOf(”abc”,”def")
val sum = list.reduce {}
How to make the
sum
equal to 6?