| 1 | package Data::Perl::Collection::Array; | ||
| 2 | 9 | $Data::Perl::Collection::Array::VERSION = '0.002011'; | |
| 3 | # ABSTRACT: Wrapping class for Perl's built in array structure. | ||
| 4 | |||
| 5 | 9 | ▶ | use strictures 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 9 | ▶ | use Role::Tiny::With; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 9 | with 'Data::Perl::Role::Collection::Array'; | |
| 10 | |||
| 11 | 9 | 1; | |
| 12 | |||
| 13 | =pod | ||
| 14 | |||
| 15 | =encoding UTF-8 | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Data::Perl::Collection::Array - Wrapping class for Perl's built in array structure. | ||
| 20 | |||
| 21 | =head1 VERSION | ||
| 22 | |||
| 23 | version 0.002011 | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | use Data::Perl qw/array/; | ||
| 28 | |||
| 29 | my $array = array(1, 2, 3); | ||
| 30 | |||
| 31 | $array->push(5); | ||
| 32 | |||
| 33 | $array->grep(sub { $_ > 2 })->map(sub { $_ ** 2 })->elements; # (3, 5); | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | This class is a simple consumer of the L<Data::Perl::Role::Collection::Array> | ||
| 38 | role, which provides all functionality. You probably want to look there | ||
| 39 | instead. | ||
| 40 | |||
| 41 | =head1 AUTHOR | ||
| 42 | |||
| 43 | Matthew Phillips <mattp@cpan.org> | ||
| 44 | |||
| 45 | =head1 COPYRIGHT AND LICENSE | ||
| 46 | |||
| 47 | This software is copyright (c) 2020 by Matthew Phillips <mattp@cpan.org>. | ||
| 48 | |||
| 49 | This is free software; you can redistribute it and/or modify it under | ||
| 50 | the same terms as the Perl 5 programming language system itself. | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | __END__ | ||