couchrest_model/examples/word_count/views/markov/chain-reduce.js
2008-06-01 15:07:56 -07:00

7 lines
89 B
JavaScript

function(key,vs,c){
if (c) {
return sum(vs);
} else {
return vs.length;
}
}