function(doc) { emit( [ doc.a, doc.b.split().map(function(s) { return -s.charCodeAt(0); })], doc); }