This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

KSetPartitions

KSetPartitions[set, k]
returns the list of set partitions of set with k blocks.
KSetPartitions[n, k]
returns the list of set partitions of {1,2,...,n} with k blocks. If all set partitions of a set are needed, use the function SetPartitions.