Add a new overload for "reduce".