Just another Perl shrine | |
PerlMonks |
Re: Getting permutations of length n of an array of length greater than n?by choroba (Cardinal) |
on Jan 18, 2022 at 22:08 UTC ( [id://11140590]=note: print w/replies, xml ) | Need Help?? |
Instead of Algorithm::Permute, try Math::Combinatorics or Algorithm::Combinatorics.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|