Hmm, and we can shave that down to 71 chars:
sub P{ [@_],map{my$i=$_;grep{!grep$_>$i,@$_}map[$i,@$_],P($_[0]-$i)}1..$_[0]- +1 }
In reply to Re: Re (tilly) 2: (Golf as well): List of Partitions
by danger
in thread (Golf as well): List of Partitions
by jynx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |