| 1 | package Acme::Lambda::Expr::Proc; | ||
| 2 | |||
| 3 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 4 | ▶ | use Acme::Lambda::Expr::Util qw(as_lambda_expr); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | extends qw(Acme::Lambda::Expr::Term); | |
| 7 | |||
| 8 | 4 | has args => ( | |
| 9 | is => 'ro', | ||
| 10 | isa => 'ArrayRef', | ||
| 11 | |||
| 12 | initializer => \&_initialize_args, | ||
| 13 | auto_deref => 1, | ||
| 14 | |||
| 15 | required => 1, | ||
| 16 | ); | ||
| 17 | 9 | ▶ | sub _initialize_args{ |
|
Subroutine
_initialize_args: called CC=1 SCAR=0.0
| |||
| 18 | 9 | my($self, $args) = @_; | |
| 19 | 9 | $self->{args} = [ map{ as_lambda_expr($_) } @{$args} ]; | |
| 20 | 9 | return; | |
| 21 | } | ||
| 22 | |||
| 23 | 4 | __PACKAGE__->meta->make_immutable(); | |
| 24 | |||