There are many brilliant implementations for Permutations - I chose Sam's answer in the link.
I also understand there is a difference between permutations and combinations but I don't know how to word this properly.
I need guidance on getting all unique partial combinations please, e.g.
A,B,C = {A,B}, {A,C}, {B,C}
A,B,C,D = {A,B,C},{A,B,D},{B,C,D},{A,C,D},{A,B}, {A,C}, {B,C}
From here I will pass this to the permutation function to get me all available
permutations,
e.g. {A,B}, {B,A}, {A,C}, {C,A}
etc.
How can I get these (partial) subsets of the greater set?