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 πŸ’œ


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