reduce method
Reduces a map to a single value by iteratively combining entries of the collection using the provided function.
Implementation
MapEntry<K, V> reduce(
MapEntry<K, V> Function(MapEntry<K, V> value, MapEntry<K, V> entry) combine,
) {
return entries.reduce(combine);
}