def values_reducer(aggregation_fn):
 return partial(reduce_with, aggregation_fn)

def values_reducer ( aggregation_fn ) : return partial ( reduce_with , aggregation_fn )
turns a function into a reducer .