Knuth's algorithm S: Difference between revisions

Content deleted Content added
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: Line 494:


=={{header|PARI/GP}}==
=={{header|PARI/GP}}==
{{output?|PARI/GP}}
{{incomplete|PARI/GP|Does not return a function.}}
{{incomplete|PARI/GP|Does not return a function.}}
<lang parigp>KnuthS(v,n)={
<lang parigp>KnuthS(v,n)={
Line 504: Line 503:
};
};
KnuthS([0,1,2,3,4,5,6,7,8,9],3)</lang>
KnuthS([0,1,2,3,4,5,6,7,8,9],3)</lang>

Output:
<pre>%1 = [8, 4, 2]</pre>


=={{header|Perl}}==
=={{header|Perl}}==