Data::...::Array(3pm)
π NAME π
Data::Perl::Collection::Array β bestie, it's a wrapping class for Perl's built-in array structure. That's it, that's the whole vibe. π
(This page is from the User Contributed Perl Documentation manual, for Data::...::Array(3pm), if you were wondering where you wandered into.) β¨
πΈ VERSION πΈ
version 0.002011 β yes, that's the number, no I will not round it, we respect all six digits in this house π
π¦ SYNOPSIS π¦
okay so here's the whole thing in action, look at her go:
use Data::Perl qw/array/;
my $array = array(1, 2, 3);
$array->push(5);
$array->grep(sub { $_ > 2 })->map(sub { $_ ** 2 })->elements; # (3, 5);
she pulls in Data::Perl with the array import, builds an array with 1, 2, 3, pushes 5 on, then chains grep and map straight down to elements and gets (3, 5) back. chaining like that?? main character energy fr π₯
β¨ DESCRIPTION β¨
So Data::Perl::Collection::Array is a simple consumer of the Data::Perl::Role::Collection::Array role β and that role is where literally all the functionality lives. This class is just the vibes wrapper, the role is the whole personality.
bestie if you actually want to know how anything works, go look at Data::Perl::Role::Collection::Array instead. this page is giving "read the other page" and it's not sorry about it π
π AUTHOR π
Matthew Phillips <mattp@cpan.org> β icon, legend, wrote the whole thing π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2020 by Matthew Phillips <mattp@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, remix it, redistribute it, slay π«Ά
and that's the page, bestie!! π she's documented, she's on perl v5.36.0, and this snapshot is dated 2022-10-16. no cap, that's everything. mwah ππ
π¦ where this page comes from
- ubuntu noble: libdata-perl-perl 0.002011-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdata-perl-perl 0.002011-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-perl-perl 0.002011-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms