Suppose I have a list
lis={a,b,c,d,e,f};
Is there a way to get all the combination of 3 elements (without order) from it? I try to use
Flatten[Permutations /@ Subsets[lis, {3}], 1]
But it not contains the repeated elements, that is I want the elements such as {a,a,a}
be included also.
Join[Subsets[extensions, {2}] , {#, #} & /@ extensions]
I hope I missed something... $\endgroup$Sort/@Tuples//Union
? $\endgroup$