| 1 | package Data::Focus::Applicative::Const::First; | ||||||||||
| 2 | 21 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 21 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 21 | ▶ | use parent qw(Data::Focus::Applicative::Const); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 21 | my $PURE = __PACKAGE__->new(undef); | |||||||||
| 7 | |||||||||||
| 8 | 73 | ▶ | sub pure { $PURE } | ||||||||
|
Subroutine
pure: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 9 | |||||||||||
| 10 | 611 | ▶ | sub build { | ||||||||
|
Subroutine
build: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 11 | 611 | my ($class, $builder, @f_parts) = @_; | |||||||||
| 12 | 611 | foreach my $f_part (@f_parts) { | |||||||||
| 13 | 437 | ▶ | return $f_part if defined($f_part->get_const); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | } | ||||||||||
| 15 | 195 | return $PURE; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 643 | ▶ | sub create_part_mapper { | ||||||||
|
Subroutine
create_part_mapper: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 19 | 643 | my ($class) = @_; | |||||||||
| 20 | 643 | ▶ | return sub { my ($datum) = @_; $class->new(\$datum) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 21 | 1; | |||||||||
| 24 | __END__ | ||||||||||