List::Util::Superpositions - Provides 'any' and 'all' for lists


List-Util-Superpositions documentation Contained in the List-Util-Superpositions distribution.

Index


Code Index:

NAME

Top

List::Util::Superpositions - Provides 'any' and 'all' for lists

Version

Top

Version 1.2

Synopsis

Top

This module extends the methods provided by List::Util to offer the any() and all() operators from Quantum::Superpositions as part of the List::Util feature set.

    use List::Util::Superpositions;

    my $foo = List::Util::Superpositions->new();
    ...

Exports & Inheritances

Top

Quantum::Superpositions

* any
* all

List::Util

* first
* max
* maxstr
* min
* minstr
* reduce
* shuffle
* sum

Author

Top

Richard Soderberg, <RSOD@cpan.org>

Story

Top

It seemed handy to link Quantum::Superpositions into List::Util, after a discussion in IRC triggered the thought. I'm reasonably sure I didn't cover all the possible List::Util exports, and there's got to be a more generic way to do it -- perhaps using @EXPORT_OK.

Bugs

Top

Please report any bugs or feature requests to bug-List-Util-Superpositions@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

Copyright & License

Top


List-Util-Superpositions documentation Contained in the List-Util-Superpositions distribution.
package List::Util::Superpositions;

use warnings;
use strict;

use List::Util qw(first max maxstr min minstr reduce shuffle sum);
use Quantum::Superpositions qw(any all);

use base qw( List::Util Quantum::Superpositions );
use vars qw( @EXPORT @EXPORT_OK );

use Exporter::Lite;
@EXPORT       = qw();
@EXPORT_OK    = qw(any all first max maxstr min minstr reduce shuffle sum);

our $VERSION = '1.2';

1; # End of List::Util::Superpositions