List::Gen::Lazy::Ops - perl ops with partial + lazy application
this module implements some of the perl operators with fn() from List::Gen::Lazy
fn()
the implemented infix operators are:
+ - / * % . & | ^ < >
the implemented prefix operators are:
! ~
each is a subroutine and must be prefixed by & :
&
my $plus_1 = &+(1); say 5->$plus_1; # 6
this module mainly exists to ease writing expressions like:
use List::Gen::Haskell; my $sum = foldl \&+; $_ = L 0, 1, zipWith \&+, $_, tail $_ for my $fibs;
Eric Strom, <asg at cpan.org>
<asg at cpan.org>
report any bugs / feature requests to bug-list-gen at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=List-Gen.
bug-list-gen at rt.cpan.org
comments / feedback / patches are also welcome.
copyright 2009-2011 Eric Strom.
this program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
see http://dev.perl.org/licenses/ for more information.
To install List::Gen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm List::Gen
CPAN shell
perl -MCPAN -e shell install List::Gen
For more information on module installation, please visit the detailed CPAN module installation guide.