Acme-Partitioner
view release on metacpan or search on metacpan
lib/Acme/Partitioner.pm view on Meta::CPAN
while ($partitioning->refine) {
say "Still partitioning, got "
. $p->size . " partitions so far";
}
=head1 DESCRIPTION
This module provides a simple interface to partition items of a set
into smaller sets based on criteria supplied by the caller. One step
in the refinement process extracts keys from the elements and groups
elements based on all of them. Criteria can be based on assignments
to partitions based on previous refinements, in which case multiple
refinements are necessary before the process stabilises.
=head2 METHODS
=over
=item Acme::Partitioner->using(@items)
Constructor, takes a list of items to be partitioned into clusters.
=item once_by($sub)
( run in 0.474 second using v1.01-cache-2.11-cpan-8d75d55dd25 )