Power set: Difference between revisions
→Functional (ES 5)
Line 1,441:
<lang JavaScript>(function () {
// translating: powerset = foldr (\x acc -> acc ++ map (x:) acc) [[]]
function powerset(xs) {
|
Line 1,441:
<lang JavaScript>(function () {
// translating: powerset = foldr (\x acc -> acc ++ map (x:) acc) [[]]
function powerset(xs) {
|
edits