I was looking some implementation of _Collections....
# announcements
d
I was looking some implementation of _Collections.kt and there is the fold method:
Copy code
public inline fun <T, R> Iterable<T>.fold(initial: R, operation: (acc: R, T) -> R): R {
   var accumulator = initial
   for (element in this) accumulator = operation(accumulator, element)
   return accumulator
}
Question: what is the needed of acc variable? it could be only:
operation: (R, T) -> R
it is not?