simpler mappings

This commit is contained in:
Chris Anderson 2009-01-01 22:32:50 -08:00
parent a10d902d71
commit 293e9abad8
3 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1,10 @@
// example reduce function to count the
// number of rows in a given key range.
function(keys, values, rereduce) {
if (rereduce) {
return sum(values);
} else {
return values.length;
}
};