Find the missing permutation: Difference between revisions
Content deleted Content added
m →Python:Folding XOR over the set of strings: (:Pruned out some scaffolding) |
m →JS :: XOR: Slight reduction |
||
Line 1,690: | Line 1,690: | ||
]; |
]; |
||
return xs |
return xs.reduce( |
||
(a, x) => zipWith(xor)(a)(codes(x)), |
(a, x) => zipWith(xor)(a)(codes(x)), |
||
[0, 0, 0, 0] |
|||
).map(x => String.fromCodePoint(x)).join('') |
).map(x => String.fromCodePoint(x)).join('') |
||
}; |
}; |