# Generating partitions of a set with a specified size of the parts [duplicate]

I tried the following (inspired by the answer here)

myList = {a, b, c};
Needs["Combinatorica"];
SetPartitions[myList]


{{{a, b, c}}, {{a}, {b, c}}, {{a, b}, {c}}, {{a,c}, {b}}, {{a}, {b}, {c}}}

• Isn't there just one result, given by Partition[myList, 2]`? – wxffles May 16 '13 at 1:55