List::...utable(3pm)

πŸ“¦
version 2.028003 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Okay so bestie, this is the manual page for List::Objects::WithUtils::Array::Immutable β€” aka List::...utable(3pm) β€” and it's giving immutable array objects. Yes, that means exactly what it sounds like. πŸ’…

✨ SYNOPSIS ✨

use List::Objects::WithUtils 'immarray';

my $array = immarray(qw/ a b c /);

my ($head, $rest) = $array->head;

πŸ¦‹ DESCRIPTION πŸ¦‹

These are immutable array objects. The whole vibe is: you can look, but you cannot touch. Attempting to call list-mutating methods β€” or modifying the backing array directly β€” will throw an exception. No cap. 😭

This class consumes the following roles, which contain most of the relevant documentation:

  • List::Objects::WithUtils::Role::Array
  • List::Objects::WithUtils::Role::Array::WithJunctions
  • List::Objects::WithUtils::Role::Array::Immutable

(If you want the mutable implementation, go check out List::Objects::WithUtils::Array β€” that one's the main character who can change. πŸ‘‘)

🌸 immarray 🌸

Creates a new immutable array object. Iconic. ✨

πŸ’œ AUTHOR πŸ’œ

Jon Portnoy <avenj@cobaltirc.org>

Licensed under the same terms as Perl.


And that's the whole page, bestie! It's from perl v5.38.2, dated 2024-03-07, and the manual name is List::...utable(3pm). Bye! πŸ’–πŸ¦‹

πŸ“¦ where this page comes from