Is there an elegant way to generate the permutations of all the members of a set?

It is possible. But I have a few questions. What do you want to achieve in the end? 123456 as number may not be convenient as a lookup table. You may want to store it as an array or string "123456". How are you referencing it to map to color?

I checked the referenced topic and it seems @jeremydouglass already gave an answer in a Python script. It would be so much nicer if you’d have explicitly linked it in the first place :slight_smile: and I guess, it’s a matter of porting it to Java.

2 Likes