I have a list with expressions like
{1,3,5,a,c,b,3,d}
I want to generate all outputs with permutations of {a,b,c,d}, so for example a rule like
/. {a->a,b->d, c->c, d->b)
In total shere should be k! new lists. For the above example I also do not know how to make a replacement like b<->d which would save some time.
I found the Function PermutationReplace, and something like
PermutationReplace[{1,2,3},SymmetricGroup[3]]
would give me all 6 Permutations of 123. But I dont know how I can apply something like that were the elements I want to permute are arbitrary numbers/characters/variables.
I appreciate any help, and thanks for reading.