
Set::IntSpan::Partition - Partition int sets using Set::IntSpan objects

use Set::IntSpan::Partition; my @partition = intspan_partition( @list );

Partition sets based on membership in a set of Set::IntSpan objects.

Given a set of Set::IntSpan objects, this sub creates the smallest set of Set::IntSpan objects such that, iff an element was in one or more of the input sets, it will be in exactly one of the output sets, and an output set is either a subset of an input set or disjoint with it.

intspan_partition.

Slow. Patches welcome. I don't like the name intspan_partition, ideas welcome.

Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>. This module is licensed under the same terms as Perl itself.