Jump to content

Unique characters in each string: Difference between revisions

m
(→‎{{header|JavaScript}}: Added a version in JavaScript)
Line 302:
wordCount = ws.length,
charFreqs = charCounts(ws.join("")),
shared[h, ...t] = ws.slice(1).reduce(,
shared = t.reduce(
(a, x) => intersect(a)(new Set([...x])),
new Set([...ws[0]h])
);
 
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.