freebsd-ports/math/p5-Set-Partition/pkg-descr
Aaron Dalton 2ca026de42 Adding port math/p5-Set-Partition, Enumerate all arrangements of a set in
fixed subsets.

Approved by:	tobez (implicit)
2006-06-06 00:40:10 +00:00

12 lines
576 B
Text

Set::Partition takes a list or hash of elements and a list numbers that
represent the sizes of the partitions into which the list of elements
should be arranged.
The resulting object can then be used as an iterator which returns a
reference to an array of lists, that represents the original list arranged
according to the given partitioning. All possible arrangements are
returned, and the object returns undef when the entire combination space
has been exhausted.
WWW: http://search.cpan.org/dist/Set-Partition
Author: David Landgren (http://www.landgren.net/perl/)