Department numbers: Difference between revisions

→‎JS ES6: Updated JS to mirror a Haskell edit (using bind at all 3 of the x, y, z levels to hilight structure)
(→‎JS ES6: Updated JS to mirror a Haskell edit (using bind at all 3 of the x, y, z levels to hilight structure))
Line 341:
return bind(filter(even, ds),
x => bind(filter(d => d !== x, ds),
y => {bind([total - (x + y)],
constz => (z !== totaly -&& (xlo +<= yz && z <= hi); ? [
return y !== z &&[x, lo <=y, z && z <= hi ? (]
] : []
[x, y, z])
]
) : [];
}
)
);
};
 
9,655

edits