| 1 | 2 | ▶ | use v5.10.1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Neo4j::Types::Path; | ||
| 6 | # ABSTRACT: Represents a Neo4j path of nodes and relationships | ||
| 7 | 2 | $Neo4j::Types::Path::VERSION = '2.00'; | |
| 8 | |||
| 9 | |||
| 10 | 6 | ▶ | sub elements { |
|
Subroutine
elements: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 6 | my ($self) = @_; | |
| 12 | |||
| 13 | 6 | return @$self; | |
| 14 | } | ||
| 15 | |||
| 16 | |||
| 17 | 6 | ▶ | sub nodes { |
|
Subroutine
nodes: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 6 | my ($self) = @_; | |
| 19 | |||
| 20 | 6 | my $i = 0; | |
| 21 | 6 | return grep { ++$i & 1 } @$self; | |
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | 6 | ▶ | sub relationships { |
|
Subroutine
relationships: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 6 | my ($self) = @_; | |
| 27 | |||
| 28 | 6 | my $i = 0; | |
| 29 | 6 | return grep { $i++ & 1 } @$self; | |
| 30 | } | ||
| 31 | |||
| 32 | |||
| 33 | 2 | 1; | |