Sha256: 0d377fb39c1600abbff161ee0fb5002f38e6f108ef89940658c3ee7dfab4bf0d
Contents?: true
Size: 293 Bytes
Versions: 6
Compression:
Stored size: 293 Bytes
Contents
function(doc) { if (doc.tags) { // assumes doc.tags is an array of strings var tags = doc.tags; tags.sort(); for (var i=0; i < tags.length; i++) { emit(tags[i], 1); for (var j = i+1; j < tags.length; j++) { emit(tags.slice(i, j+1), 1); } } } }
Version data entries
6 entries across 6 versions & 1 rubygems