On 10/11/2008, at 9:01 AM, Chris Anderson wrote:
Reduce:
function(keys, values, rereduce) {
if (rereduce) {
return sum(values);
} else {
return values.length;
}
}
Cool idea, works nicely in this situation and very elegant. Thanks for the tip!
Sho
-- Chris Anderson http://jchris.mfdz.com
