reduce<T> function

num reduce<T>(
  1. Iterable<T> list,
  2. num call(
    1. num,
    2. T
    ), [
  3. num initValue = 0
])

Implementation

num reduce<T>(Iterable<T> list, num Function(num, T) call, [num initValue = 0]) {
  return reduce2<T, num>(list, call, initValue);
}