6 lines
135 B
Mathematica
6 lines
135 B
Mathematica
|
|
powerset({{1,2},3})
|
||
|
|
|
||
|
|
ans =
|
||
|
|
|
||
|
|
{1x0 cell} {1x1 cell} {1x1 cell} {1x2 cell} %This is the same as { {},{{1,2}},{3},{{1,2},3} }
|