logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Data::Perl::Collection::Array - Wrapping class for Perl's built in array structure.

Author

       Matthew Phillips <mattp@cpan.org>

Description

       This class is a simple consumer of the Data::Perl::Role::Collection::Array role, which provides all
       functionality. You probably want to look there instead.

Name

       Data::Perl::Collection::Array - Wrapping class for Perl's built in array structure.

Synopsis

         use Data::Perl qw/array/;

         my $array = array(1, 2, 3);

         $array->push(5);

         $array->grep(sub { $_ > 2 })->map(sub { $_ ** 2 })->elements; # (3, 5);

Version

       version 0.002011

See Also