12-08-2010, 01:36 AM

I have been trying to figure out how to generate permutations of the elements in a list in user RPL w/ my 48gii. I know I can write a brute force generator but it seems there should be some elegant way to do this with P2C and/or C2P and perhaps DOLIST or DOSUB but I'm getting nowhere understanding the cycle notation stuff.

Am I whistling in the wind here or is there a way?

My simple test case is to generate all the permutations of the elements in the list {1 2 3 4}.

Thanks,

Norm