Set::Partition 0.03
Sponsored Links
Set::Partition 0.03 Ranking & Summary
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.
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
Set::Partition 0.03 Keywords
Partition 0.03
B C
d e
C D
set in
Perl module
b
d
c
e
list
arrangements
Set::Partition
SetPartition
Set::Partition 0.03
Libraries
Bookmark Set::Partition 0.03
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
do not call list
set internet explorer as default
chris brown
opera set in egypt
perl modules
disney channel
set india tv
set internet explorer as default browser
edible arrangements
set internet explorer default browser
set index
install perl module
vinal swing set in los angeles ca
set in stone fires of rome
a b c d e f g h i l m n o p q r s t u v z x y k j w at
set inc
set in stone
a b c d e f g h i j k l m n o p q r s t u v w x y z
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
Latest Software
Popular Software
Favourite Software