couchrest_model/examples/word_count/views/markov/chain-reduce.js

7 lines
89 B
JavaScript
Raw Normal View History

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