Given a list of n characters, is it possible to create code which will produce for further processing:
-
[*]All permutations taken 2 at a time; then
[*]All permutations taken 3 at a time; then
[*]All permutations taken 4 at a time; then
[*]All permutations taken 5 at a time; etc up to
[*]All permutations taken n at a time
I have been pondering this abstract situation for some time without any breakthrough. Given a fixed value for n I believe it would not present a great challenge to create code specific to the task. My problem is in the development of a concept to handle n being passed as an argument.