Department numbers: Difference between revisions
m
→JS ES6: Tidied.
Not a robot (talk | contribs) (Add Draco) |
m (→JS ES6: Tidied.) |
||
Line 2,293:
Briefly:
<lang JavaScript>(() => {
"use strict";
const
solutions = [2, 4, 6]
.flatMap(
▲ return '(Police, Sanitation, Fire)\n' +
z => z !== y && 1 <= z && z <= 7 ? [
[x, y, z]
] : [
)
)
)
.map(JSON.stringify)
.join(
return `${label}\n${solutions}`;
})();</lang>
{{Out}}
|