| List-Util-Superpositions documentation | Contained in the List-Util-Superpositions distribution. |
List::Util::Superpositions - Provides 'any' and 'all' for lists
Version 1.2
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();
...
Richard Soderberg, <RSOD@cpan.org>
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.
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 2004, 2008 Richard Soderberg, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 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