| 1 | 59 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 59 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 59 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 59 | ▶ | if ( $] < 5.010000 ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 6 | 0 | require UNIVERSAL::DOES; | |||||||||
| 7 | } | ||||||||||
| 8 | |||||||||||
| 9 | package LINQ::Array; | ||||||||||
| 10 | |||||||||||
| 11 | 59 | our $AUTHORITY = 'cpan:TOBYINK'; | |||||||||
| 12 | 59 | our $VERSION = '0.003'; | |||||||||
| 13 | |||||||||||
| 14 | 59 | ▶ | use Role::Tiny::With (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 59 | Role::Tiny::With::with( qw( LINQ::Collection ) ); | |||||||||
| 17 | |||||||||||
| 18 | 269 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 19 | 269 | my $class = shift; | |||||||||
| 20 | 269 | bless [ @{ $_[0] } ], $class; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 21 | ▶ | sub count { | ||||||||
|
Subroutine
count: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | 21 | my $self = shift; | |||||||||
| 25 | 21 | ▶ | return $self->where( @_ )->count if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 20 | scalar @$self; | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 329 | ▶ | sub to_list { | ||||||||
|
Subroutine
to_list: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 30 | 329 | my $self = shift; | |||||||||
| 31 | 329 | @$self; | |||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 59 | 1; | |||||||||
| 35 | |||||||||||
| 36 | __END__ | ||||||||||