JuliaLang/julia — pull request #4887 by Jutho (2013-11-21 23:56:46+00:00)
Title: FixedSetPartitions

Functionality for iterating over the partitions of a set into a fixed
number of subsets. partitions(array,m) relates to partitions(array)
like partitions(n,m) relates to partitions(n).