Combinations and permutations: Difference between revisions

m
→‎{{header|Phix}}: Fix comment: Perl 6 --> Raku
m (→‎{{header|Perl}}: Fix comments: Perl 6 --> Raku)
m (→‎{{header|Phix}}: Fix comment: Perl 6 --> Raku)
Line 1,681:
 
=={{header|Phix}}==
Translation of Perl 6Raku/Sidef, same results<br>
Update: there are now builtin routines k_perm(n,k) and choose(n,k), slightly more efficient equivalents of P() and C() respectively.
<lang Phix>function P(integer n,k)
2,392

edits