Formatting
This commit is contained in:
parent
3963808152
commit
4be37a4f67
1 changed files with 4 additions and 4 deletions
|
|
@ -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 }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue