Power set: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→Module: ntheory: Fix comment: Perl 6 --> Raku) |
||
Line 2,462: | Line 2,462: | ||
<pre>[] [a] [b] [c] [a b] [a c] [b c] [a b c]</pre> |
<pre>[] [a] [b] [c] [a b] [a c] [b c] [a b c]</pre> |
||
Using the two argument version of the iterator gives a solution similar to the |
Using the two argument version of the iterator gives a solution similar to the Raku and Python array versions. |
||
<lang perl>use ntheory "forcomb"; |
<lang perl>use ntheory "forcomb"; |
||
my @S = qw/a b c/; |
my @S = qw/a b c/; |