Power set: Difference between revisions
m
→{{header|Icon}} and {{header|Unicon}}
(→{{header|Icon}} and {{header|Unicon}}: added introduction) |
|||
Line 767:
=={{header|Icon}} and {{header|Unicon}}==
The two examples below show the similarities and differences between constructing an explicit representation of the solution, i.e. a set containing the powerset, and one using generators. The basic recursive algorithm is the same in each case, but wherever the first stores part of the result away, the second uses 'suspend' to
===Set building===
|