Unique characters in each string: Difference between revisions
Content added Content deleted
m (→{{header|JavaScript}}: Slight reduction in terms of a foldr (curried .reduceRight)) |
|||
Line 311: | Line 311: | ||
)( |
)( |
||
charSet(ws[0]) |
charSet(ws[0]) |
||
)( |
)( |
||
ws.slice(1) |
|||
) |
|||
] |
] |
||
.filter(c => wordCount === charFreqs[c]) |
.filter(c => wordCount === charFreqs[c]) |