Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.858.071 Times

Set::Partition 0.03

  Date Added: May 15, 2010  |  Visits: 899

Set::Partition

Report Broken Link
Printer Friendly Version


Product Homepage
Download (106 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Arrangements B C C D Libraries List Perl Module Programming Set In Setpartition
Users rating: 0/10

License: Freeware Size: 7.17 KB
USER REVIEWS
More Reviews or Write Review


SET::PARTITION RELATED
Libraries  -  I18N::LangTags::List 0.35
I18N::LangTags::List Perl module contains tags and names for human languages. SYNOPSIS use I18N::LangTags::List; print "Parlez-vous... ", join(, , I18N::LangTags::List::name(elx) || unknown_language, I18N::LangTags::List::name(ar-Kw) ||...
30.72 KB  
Libraries  -  BSD::Ipfwgen 1.5
BSD::Ipfwgen is a Perl module to aid in the creation of ipfw-based firewalls. SYNOPSIS use BSD::Ipfwgen; outside qw(**interface list**); leaf qw(**interface list**); consolidate qw(**network list**); us qw(**network list**); not_us...
12.29 KB  
Libraries  -  Tie::Hash::Sorted 0.10
Tie::Hash::Sorted Perl module presents hashes in sorted order. SYNOPSIS use Tie::Hash::Sorted; my %ages = ( John => 33, Jacob => 29, Jingle => 15, Heimer => 48, Smitz => 12, ); my $sort_by_numeric_value = sub { my $hash = shift; [...
8.19 KB  
Libraries  -  CfgTie::TieNet 0.41
CfgTie::TieNet is a Perl module to tie in the net database. SYNOPSIS tie %net,CfgTie::TieNet This is a straightforward hash tie that allows us to access the net database sanely. Ties There are two ties available for programmers: tie...
86.02 KB  
Libraries  -  Config::FreeForm 0.01
Config::FreeForm is a Perl module that provides in-memory configuration data. SYNOPSIS use Config::FreeForm %options; Config::FreeForm provides in-memory configuration data in a free-form manner. Many existing configuration modules attempt...
5.12 KB  
Libraries  -  Object::LocalVars 0.16
Object::LocalVars is a Perl module with outside-in objects with local aliasing of $self and object variables. SYNOPSIS package My::Object; use strict; use Object::LocalVars; give_methods our $self; # this exact line is required our...
40.96 KB  
Libraries  -  Kwiki::Podcas 0.01
Kwiki::Podcast is a Perl module for podcasting in a Kwiki way. INSTALLATION kwiki -install Kwiki::Podcast This plugin offer an Kwiki action to generate podcast rss. User simply put down a mp3 URL in a page, and leave the rest to Kwiki. For...
8.19 KB  
Libraries  -  Variable::Strongly::Typed::Validators 1.1.0
Variable::Strongly::Typed::Validators is Perl module with built-in type validators. SYNOPSIS This class is utilized by Variable::Strongly::Typed - you dont access this directly. This module defines a %conditions hash contained expressions that...
10.24 KB  
Libraries  -  DateTime::Calendar::Hebrew 0.04
DateTime::Calendar::Hebrew is a Perl module with dates in the Hebrew calendar. SYNOPSIS use DateTime::Calendar::Hebrew; $dt = DateTime::Calendar::Hebrew->new( year => 5782, month => 10, day => 4 ); DateTime::Calendar::Hebrew is the...
19.46 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB