reduce method

MapEntry<K, V> reduce(
  1. MapEntry<K, V> combine(
    1. MapEntry<K, V> value,
    2. MapEntry<K, V> entry
    )
)

Reduces a map to a single value by iteratively combining entries of the collection using the provided function.

Iterable.reduce

Implementation

MapEntry<K, V> reduce(
  MapEntry<K, V> Function(MapEntry<K, V> value, MapEntry<K, V> entry) combine,
) {
  return entries.reduce(combine);
}