<?xml version="1.0" encoding="windows-1252"?>
<node id="75281" title="Re: (Golf) Ordered Combinations" created="2001-04-24 21:55:19" updated="2005-07-27 05:14:37">
<type id="11">
note</type>
<author id="51812">
satchboost</author>
<data>
<field name="doctext">
I know that I'm bending the rules a little, but this does get below 50.
&lt;p&gt;&lt;code&gt;sub c{my$n=pop;--$n?map{my$c=$_;map$c.$_,c(@_,$n)}@_:@_}&lt;/code&gt;
&lt;p&gt;Example:
&lt;p&gt;&lt;code&gt;print join " ", c qw(a b c 2);
print "\n";
print join " ", c qw(0 1 4);
print "\n";
&lt;/code&gt;</field>
<field name="root_node">
75261</field>
<field name="parent_node">
75261</field>
</data>
</node>
