in reply to Re: Combinations / permutations... not even sure what this is called (Cross-Product)
in thread Combinations / permutations... not even sure what this is called

I think calling my solution a "hack" is a bit too strong. It is a legal albeit not so obvious use of glob.

One thing is for sure, if this is a homework, the prof is going to freak out if the student presents my code as the homework answer! He/she just won't believe that it was unassisted.

I leave it to the OP to write some nested loops that will do the same job.

  • Comment on Re^2: Combinations / permutations... not even sure what this is called (Cross-Product)