Formatting

This commit is contained in:
Michael S. Klishin 2011-10-16 15:54:09 +04:00
parent 3963808152
commit 4be37a4f67

View file

@ -505,13 +505,13 @@
(let [collection "widgets" (let [collection "widgets"
mapper "function() { mapper "function() {
emit(this.state, this.price * this.quantity) emit(this.state, this.price * this.quantity)
}" }"
reducer "function(key, values) { reducer "function(key, values) {
var result = 0; var result = 0;
values.forEach(function(v) { result += v }); values.forEach(function(v) { result += v });
return result; return result;
}" }"
batch [{ :state "CA" :quantity 1 :price 199.00 } batch [{ :state "CA" :quantity 1 :price 199.00 }
{ :state "NY" :quantity 2 :price 199.00 } { :state "NY" :quantity 2 :price 199.00 }