def reduce_with(aggregation_fn, key, values):
 (yield (key, aggregation_fn(values)))

def reduce_with ( aggregation_fn , key , values ) : ( yield ( key , aggregation_fn ( values ) ) )
reduces a key-values pair by applying aggregation_fn to the values .