BSD Ports

math/p5-Set-Partition 0.03_1 DragonFly

Enumerate all arrangements of a set in fixed subsets

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
math, perl5
Package size
9.0 KiB, 16.6 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlymath/p5-Set-Partition0.03_1
FreeBSDmath/p5-Set-Partition0.03_1

Install

Binary package:

pkg install p5-Set-Partition

From DPorts:

cd /usr/dports/math/p5-Set-Partition && make install clean

Dependencies

Run dependencies 1

No port depends on this one.