MooseX...bleHash(3pm)

πŸ“¦
version 0.25 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

MooseX::AttributeHelpers::MethodProvider::ImmutableHash β€” it's the method generator for MooseX::AttributeHelpers::Collection::ImmutableHash. Yes bestie, the name is a whole paragraph, that's just how Perl rolls 🫢

And before you ask: this page is a 3pm manpage, which is the fancy way of saying it lives in the User Contributed Perl Documentation section of your manual. iykyk πŸ’…


✨ VERSION ✨

version 0.25 β€” vintage, iconic, unbothered πŸ‘‘


🌸 DESCRIPTION 🌸

Okay so real talk: this is a role. It provides the method generators for MooseX::AttributeHelpers::Collection::ImmutableHash. That's it, that's the whole vibe β€” it's the behind-the-scenes bestie that hands you all the methods so you don't have to write them yourself 🧚


πŸ¦‹ METHODS πŸ¦‹

  • meta β€” yeah. meta. That's the whole list, no cap πŸ’€

πŸ‘‘ PROVIDED METHODS πŸ‘‘

These are the methods this role generates for you. Look at this lineup. Gorgeous. ✨

  • count β€” returns the number of elements in the list. simple. elegant. ate πŸ’…
  • empty β€” if the list is populated, returns true. otherwise, returns false. (that's what the docs say bestie, I'm just the messenger πŸ™ˆ)
  • exists β€” returns true if the given key is present in the hash πŸ”₯
  • defined β€” returns true if the value of a given key is defined πŸ’œ
  • get β€” returns an element of the hash by its key. classic. the main character πŸŽ€
  • keys β€” returns the list of keys in the hash πŸ”‘
  • values β€” returns the list of values in the hash ⭐
  • kv β€” returns the key, value pairs in the hash as array references 🫢
  • elements β€” returns the key, value pairs in the hash as a flattened list 🌈

🌼 SUPPORT 🌼

Found a bug? First of all, relatable 😭 but also please tell the maintainers, not me.


🌟 AUTHOR 🌟

Stevan Little <stevan@iinteractive.com> β€” legend behaviour, honestly πŸ‘‘


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, legally speaking πŸ’…


okay that's the whole page bestie, you read all of it, I'm so proud of you πŸ₯ΉπŸ’–

perl v5.34.0 Β· 2022-06-15 Β· and that's the MooseX::AttributeHelpers::MethodProvider::ImmutableHash(3pm) page, signed off with love πŸŽ€βœ¨

πŸ“¦ where this page comes from