I have called this post for permutation in switch, but I am not sure that it was the right title for the question.
I have three strings such as:
I have also a matrix of permutated '123' such as U = perms('123');
I run to a for-loop to test all U's
and in that for-loop for each element in U, I need to do something
I need to for the first element of U, say it is '321',
put A,B,C in three different locations.
and then I need to do a test with what is in these locations, after the test then I need to change what I put in these locations like:
and again do all tests on what is in these locations.
and then after that change what I put in these locations again, do this until all
have participated in the test. After that then I need to do the whole round with the next element in the U matrix.
Say the test is done with '321' then do all that with '312' etc.
I could guess that I should start with a switch such as: (or a for-loop could be better? i guess)
*The test shall be done on the strings which are defined in the first place.
But some how I need help to set this up
any idea would be appriciated.