I know how to generate all permutations of a list like:
{'h','e','k','p'}
But I am needing to know how to generate all permutations like:
{{'a','b'}, {'h','k','d'}, ..... }
such that the first character is either an 'a' or a 'b' and the second character is one of the three in the second list, etc.
There will be less than 600 000 permutations.