reduce method

(K, V) reduce(
  1. Function2<(K, V), (K, V), (K, V)> op
)
inherited

Reduces this collection to a single value by applying op left to right.

Throws if the collection is empty.

Implementation

A reduce(Function2<A, A, A> op) => reduceLeft(op);