Use Enum.reduce on arithmetic and comparison operators.