FreeBSD.software
Home/math/p5-Set-Partition

p5-Set-Partition

0.03_1math

Enumerate all arrangements of a set in fixed subsets

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.

$pkg install p5-Set-Partition
metacpan.org/release/Set-Partition
Origin
math/p5-Set-Partition
Size
16.4KiB
License
ART10, GPLv1+
Maintainer
bofh@FreeBSD.org
Dependencies
1 packages
Required by
0 packages

Dependencies (1)