List::...::Typed(3pm)
π List::...::Typed(3pm) π
okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally the whole vibe for List::Objects::WithUtils::Array::Immutable::Typed. yes the manual name got shortened to List::...::Typed(3pm) for the header, we're keeping it cute and abbreviated, slay.
β¨ NAME β¨
List::Objects::WithUtils::Array::Immutable::Typed β Immutable typed arrays π
like. arrays. that check their types. and that you cannot touch. the whole package.
β¨ SYNOPSIS β¨
use List::Objects::WithUtils 'immarray_of';
use Types::Standard -types;
my $array = immarray_of( Int() => 1, 2, 3 );
that's it, that's the whole entrance. immarray_of pulls up with Int() from Types::Standard and three little integers and it's giving main character energy fr fr π
β¨ DESCRIPTION β¨
okay so here's the tea π β these are immutable type-checking array objects. basically it's a combination of List::Objects::WithUtils::Array::Typed and List::Objects::WithUtils::Array::Immutable. the typed one said "know your types" and the immutable one said "don't touch me" and they had a baby and this is her. she's iconic. she's unbothered. she's not changing for anyone.
Type-checking is performed when the object is created β β so the vibe check happens at birth, not later.
β οΈ and listen, bestie: attempts to modify the object will throw an exception. no cap. do not try it. she will yell at you. π
This class consumes the following roles, which contain most of the relevant documentation:
List::Objects::WithUtils::Role::ArrayList::Objects::WithUtils::Role::Array::WithJunctionsList::Objects::WithUtils::Role::Array::TypedList::Objects::WithUtils::Role::Array::Immutable
(that's where the actual docs live, iykyk β go read those for the real details π¦)
β¨ AUTHOR β¨
Jon Portnoy <avenj@cobaltirc.org> π
and that's the whole page!! perl v5.38.2, dated 2024-03-07, manual page List::...::Typed(3pm) β ily, go make some immutable typed arrays, periodt πβ¨πΈ
π¦ where this page comes from
- debian trixie: liblist-objects-withutils-perl 2.028003-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liblist-objects-withutils-perl 2.028003-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liblist-objects-withutils-perl 2.028003-5 Β· 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