in reply to Combinations / permutations... not even sure what this is called
It's called cross-product.
You can use the glob-hack like Marshall did, as long as you have no problem with stringification.
Otherwise I have code mimicking Perl6's X-operator, if your interested I can post it on Monday.
Cheers Rolf
PS: > This isn't a homework question.
I doubt this, only complete beginners don't know nested loops.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Combinations / permutations... not even sure what this is called (Cross-Product)
by Marshall (Canon) on Oct 29, 2011 at 13:19 UTC |