2 lines
84 B
Raku
2 lines
84 B
Raku
sub powerset(Set $s) { $s.combinations.map(*.Set).Set }
|
|
say powerset set <a b c d>;
|
sub powerset(Set $s) { $s.combinations.map(*.Set).Set }
|
|
say powerset set <a b c d>;
|