MooseX...::List(3pm)
πΈ NAME πΈ
MooseX::AttributeHelpers::Collection::List β it's the list attribute type, bestie π
This page is MooseX...::List(3pm) from the User Contributed Perl Documentation, and yes we are about to make an attribute type sound iconic.
β¨ VERSION β¨
version 0.25 β that's the one, no cap π
π SYNOPSIS π
okay so here's the whole vibe in code, look:
package Stuff;
use Moose;
use MooseX::AttributeHelpers;
has 'options' => (
metaclass => 'Collection::List',
is => 'ro',
isa => 'ArrayRef[Int]',
default => sub { [] },
provides => {
map => 'map_options',
grep => 'filter_options',
}
);
like. map and grep for your arrayref, generated for you, named whatever you want. that's the whole flex π
π¦ DESCRIPTION π¦
So this module hands you a List attribute that comes with a whole little suite of list operations built in. You don't write them, you don't import them, they just exist on your attribute like main character energy β¨
If you want the actual rundown of what operations you get and how they work, go read MooseX::AttributeHelpers::MethodProvider::List β that's where the details live, fr fr.
π METHODS π
metaβ the meta thing, doing meta things π§method_providerβ the method provider, providing methods πhas_method_providerβ checks whether there's a method provider in the buildinghelper_typeβ tells you the helper type, as one does π
π«Ά SUPPORT π«Ά
Found a bug? It happens, it's not your fault, go tell the people:
- Bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers>, or by email to bug-MooseX-AttributeHelpers@rt.cpan.org. π¬
- There's also a mailing list for users of this distribution, over at <http://lists.perl.org/list/moose.html>.
- And there's an irc channel for users of this distribution too:
#mooseonirc.perl.orgβ <irc://irc.perl.org/#moose>. come hang out, we're nice π
π AUTHOR π
Stevan Little <stevan@iinteractive.com> β the author, the legend, we love them for this π«‘
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2007 by Stevan Little and Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
okay bestie that's the whole page, go build something cute with your arrayrefs π β¨
and that's a wrap β this was MooseX...::List(3pm) from perl v5.34.0, dated 2022-06-15. mwah, take care of her ππ
π¦ where this page comes from
- debian bookworm: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-attributehelpers-perl 0.25-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-attributehelpers-perl 0.25-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