line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Enumerator; |
2
|
8
|
|
|
8
|
|
11490
|
use strict; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
339
|
|
3
|
8
|
|
|
8
|
|
46
|
use warnings; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
442
|
|
4
|
8
|
|
|
8
|
|
47
|
use Exporter qw/import/; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
313
|
|
5
|
8
|
|
|
8
|
|
5427
|
use Data::Enumerator::Base; |
|
8
|
|
|
|
|
21
|
|
|
8
|
|
|
|
|
219
|
|
6
|
8
|
|
|
8
|
|
4968
|
use Data::Enumerator::Array; |
|
8
|
|
|
|
|
21
|
|
|
8
|
|
|
|
|
197
|
|
7
|
8
|
|
|
8
|
|
11218
|
use Data::Enumerator::Deeply; |
|
8
|
|
|
|
|
30
|
|
|
8
|
|
|
|
|
376
|
|
8
|
8
|
|
|
8
|
|
5944
|
use Data::Enumerator::Range; |
|
8
|
|
|
|
|
23
|
|
|
8
|
|
|
|
|
301
|
|
9
|
8
|
|
|
8
|
|
4827
|
use Data::Enumerator::File; |
|
8
|
|
|
|
|
30
|
|
|
8
|
|
|
|
|
2704
|
|
10
|
|
|
|
|
|
|
our @EXPORT_OK = qw/ |
11
|
|
|
|
|
|
|
generator |
12
|
|
|
|
|
|
|
pattern |
13
|
|
|
|
|
|
|
range |
14
|
|
|
|
|
|
|
independ |
15
|
|
|
|
|
|
|
readfile |
16
|
|
|
|
|
|
|
EACH_LAST |
17
|
|
|
|
|
|
|
/; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub EACH_LAST { |
22
|
0
|
|
|
0
|
0
|
0
|
Data::Enumerator::Base->LAST; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub pattern { |
26
|
35
|
|
|
35
|
1
|
1133
|
return Data::Enumerator::Array->new( \@_ ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub independ { |
30
|
1
|
|
|
1
|
0
|
3
|
my ($target) = @_; |
31
|
1
|
|
|
|
|
5
|
return Data::Enumerator::Deeply::independ($target); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub generator { |
35
|
3
|
|
|
3
|
1
|
9
|
my ($target) = @_; |
36
|
3
|
|
|
|
|
28
|
return Data::Enumerator::Deeply->compose($target); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub readfile { |
40
|
0
|
|
|
0
|
0
|
0
|
my ($filename) = @_; |
41
|
0
|
|
|
|
|
0
|
return Data::Enumerator::File->new($filename); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub range { |
45
|
2
|
|
|
2
|
0
|
13
|
my ( $start, $end, $succ ) = @_; |
46
|
2
|
|
|
|
|
21
|
return Data::Enumerator::Range->new( $start, $end, $succ ); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
__END__ |