line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Focus::Applicative::Const::First; |
2
|
16
|
|
|
16
|
|
15802
|
use strict; |
|
16
|
|
|
|
|
23
|
|
|
16
|
|
|
|
|
646
|
|
3
|
16
|
|
|
16
|
|
73
|
use warnings; |
|
16
|
|
|
|
|
25
|
|
|
16
|
|
|
|
|
559
|
|
4
|
16
|
|
|
16
|
|
542
|
use parent qw(Data::Focus::Applicative::Const); |
|
16
|
|
|
|
|
269
|
|
|
16
|
|
|
|
|
100
|
|
5
|
|
|
|
|
|
|
|
6
|
435
|
|
|
435
|
1
|
666
|
sub mempty { undef } |
7
|
|
|
|
|
|
|
sub mconcat { |
8
|
361
|
|
|
361
|
1
|
5300
|
my $class = shift; |
9
|
361
|
|
|
|
|
681
|
my $datum = $class->mempty; |
10
|
361
|
|
|
|
|
769
|
while(@_) { |
11
|
262
|
|
|
|
|
248
|
$datum = shift; |
12
|
262
|
100
|
|
|
|
868
|
return $datum if defined $datum; |
13
|
|
|
|
|
|
|
} |
14
|
120
|
|
|
|
|
355
|
return $datum; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub create_part_mapper { |
18
|
400
|
|
|
400
|
1
|
1821
|
my ($class) = @_; |
19
|
400
|
|
|
285
|
|
3006
|
return sub { my ($datum) = @_; $class->new(\$datum) }; |
|
285
|
|
|
|
|
698
|
|
|
285
|
|
|
|
|
772
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
__END__ |