Power set: Difference between revisions

m
→‎Module: ntheory: Fix comment: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎Module: ntheory: Fix comment: Perl 6 --> Raku)
Line 2,462:
<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 Perl6Raku and Python array versions.
<lang perl>use ntheory "forcomb";
my @S = qw/a b c/;
2,392

edits