The function Subsets[] returns the subsets of a finite set of elements. This function has a shortcoming in that it treats repeated elements distinctively. Is there a function that returns the subset of a finite multiset of elements? That is, that unlike Subsets[] it treats repeated elements in-distinctively.
For example, if the new function is called NewSubsets, then the output should be:
NewSubsets[{a, b, c, c}] {{}, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {c, c}, {a, b, c}, {a, c, c}, {b, c, c}, {a, b, c, c}}
newFn[{a,c,b,c}]{{}, {a}, {b}, {c, c}, {a, b}, {a, c, c}, {b, c, c}, {a, b, c, c}}, or something else? $\endgroup$Subsetsand probably 2. looking atTuples$\endgroup${a,b,c}. $\endgroup$DeleteDuplicates[Subsets[{a, c, b, c}]](giving {{}, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {c, c}, {a, b, c}, {a, c, c}, {b, c, c}, {a, b, c, c}})? As Szabolcs says, a sample input/output pair would help. $\endgroup$