藤 吾郎 > Acme-Lambda-Expr > Acme::Lambda::Expr

Download:
Acme-Lambda-Expr-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Acme::Lambda::Expr - Lambda expressions

VERSION ^

This document describes Acme::Lambda::Expr version 0.01

SYNOPSIS ^

        use strict;
        use feature 'say';
        use Acme::Lambda::Expr qw(:all);

        my $f = $x * 2 + $y;
        say $f->(20, 2); # 20*2 + 2 = 42

        my $g = curry $f, $x, 4;
        say $g->(19);    # 18*2 + 4 = 42

        my $h = curry deparse => $x;
        say $h->($f); # $f->deparse()
        say $h->($g); # $g->deparse()

        say $g->compile->(19); # => 42

DESCRIPTION ^

This module provides lambda expressions.

DEPENDENCIES ^

Perl 5.8.1 or later.

BUGS AND LIMITATIONS ^

No bugs have been reported.

Please report any bugs or feature requests to bug-acme-lambda-expr@rt.cpan.org/, or through the web interface at http://rt.cpan.org/.

SEE ALSO ^

http://www.boost.org/.

AUTHOR ^

Goro Fuji <gfuji(at)cpan.org>

LICENSE AND COPYRIGHT ^

Copyright (c) 2008, Goro Fuji <gfuji(at)cpan.org>. Some rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: