Main > Programming > Libraries >

Set::Partition 0.03

Set::Partition 0.03

Sponsored Links

Set::Partition 0.03 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.007 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 845
Date added: 2007-07-04
Publisher: David Landgren

Set::Partition 0.03 description

Set::Partition is a Perl module that can enumerate all arrangements of a set in fixed subsets.

SYNOPSIS

use Set::Partition;

my $s = Set::Partition->new(
list => [qw(a b c d e)],
partition => [2, 3],
);
while (my $p = $s->next) {
print join( , map { "(@$_)" } @$p ), $/;
}
# produces
(a b) (c d e)
(a c) (b d e)
(a d) (b c e)
(a e) (b c d)
(b c) (a d e)
(b d) (a c e)
(b e) (a c d)
(c d) (a b e)
(c e) (a b d)
(d e) (a b c)

# or with a hash
my $s = Set::Partition->new(
list => { b => bat, c => cat, d => dog },
partition => [2, 1],
);
while (my $p = $s->next) {
...
}

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.

Set::Partition 0.03 Screenshot

Advertisements

Set::Partition 0.03 Keywords

Bookmark Set::Partition 0.03

Hyperlink code:
Link for forum:

Set::Partition 0.03 Copyright

WareSeeker periodically updates pricing and software information of Set::Partition 0.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Set::Partition 0.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
List::Part is a Perl module that allows you to partition one array into several. Free Download
Advance ReiserFS Partition Recovery Software is an easy and simple linux data recovery tool to recover linux reiserfs data from corrupt or damaged linux reiserfs partition. ReiserFS partition recovery Free Download
foundation Perl module inheritance without objects. Free Download
Siren is a music player for GNOME with an extremely minimalist interface. Free Download
Hardware::iButton is a Perl module that allows to talk to DalSemi iButtons via a DS2480 serial widget. Free Download
Kwiki::Emoticon is a Perl module with emoticon phrase for Kwiki. Free Download
Math::ODE Perl module allows you to solve N-th Order Ordinary Differential Equations with as little pain as possible. Free Download
Net::CSTA project is a perl-module for talking to an ECMA CSTA Phase I server. Free Download