def reduce(self, func, *initial):
        """Reduce to a single value by iteratively applying a function."""
        if initial: return reduce(func, self, initial[0])
        return reduce(func, self)
Reduce to a single value by iteratively applying a function.
recipes/Python/161403_Functional_dictionary_list_types/recipe-161403.py