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... – V.E. Sep 18 '16 at 02:35Sort/@Tuples//Union? – george2079 Sep 18 '16 at 02:52