Knuth's algorithm S: Difference between revisions

Content added Content deleted
(Undo revision 126416 by CRGreathouse Not only does it not return a function, but it also shows no output on this page.)
(→‎{{header|PARI/GP}}: Really? You want output for a self-reported incomplete solution?)
Line 494:
 
=={{header|PARI/GP}}==
{{output?|PARI/GP}}
{{incomplete|PARI/GP|Does not return a function.}}
<lang parigp>KnuthS(v,n)={
Line 504 ⟶ 503:
};
KnuthS([0,1,2,3,4,5,6,7,8,9],3)</lang>
 
Output:
<pre>%1 = [8, 4, 2]</pre>
 
=={{header|Perl}}==