Reduces key and value using reduce.
reduce
T reduce<T>(T Function(K, V) reduce) => reduce(key, value);