mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
ad4f267b7a
search.cpan.org is shutting down. It will redirect to metacpan.org after June 25, 2018. With hat: perl
12 lines
516 B
Plaintext
12 lines
516 B
Plaintext
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: https://metacpan.org/release/Set-Partition
|