reduce

public R reduce<R>(BiFunction<Pair<Double, T>, R, R> reducer, R init)