Cartesian for-each at runtime
Useful when the number of arguments to a carteisan product is determined at runtime.
Useful when the number of arguments to a carteisan product is determined at runtime.
For a totally-ordered set, lexicographically first and last sequences made of its elements can be defined. Every sequence is either an odd or an even number of element transpositions from the first sequence. How to keep track of the parity (even/odd)-ness of all permutations?