
powerset - power set of a set

Calling sequence:
powerset(n)

Parameter:

n  --   set or cardinal number

Summary:

If n is a setthen powerset returns the power set of n, i.e. all subsets of n in
the form of a set. If n is a cardinal number then this is interpreted as a set
consisting of the first n cardinal numbers.

>>  powerset({1,2});

     {{},{1},{2},{1,2}}

>>  powerset(2);

     {{},{1},{2},{1,2}}

