in reply to Generating all possible combinations from an AoA
use 5.010; sub mix {@_ ? map {my $x = $_; map "$x$_", mix(@_[1..$#_])} @{$_[0]} : + ""} say for mix @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generating all possible combinations from an AoA
by thargas (Deacon) on Apr 13, 2011 at 12:08 UTC | |
by tye (Sage) on Apr 13, 2011 at 13:14 UTC |