List::...unction(3pm)
π NAME π
List::Objects::WithUtils::Array::Junction β it's giving Lightweight junction classes, bestie β¨
πΈ SYNOPSIS πΈ
# See List::Objects::WithUtils::Role::Array::WithJunctions
π¦ DESCRIPTION π¦
okay so. These are light-weight junction objects, and they cover most of the functionality that Syntax::Keyword::Junction gives you. They hand you the objects that get created by the all_items and any_items methods β those are defined over in List::Objects::WithUtils::Role::Array::WithJunctions, iykyk π
Only the junction types that List::Objects::WithUtils actually uses are implemented β that's any and all, periodt. Nothing is exported, like, nothing. And the ~~ smart-match operator? Not supported. Sorry babe. π«Ά
If you were looking for a stand-alone implementation with more features, go peek at Syntax::Keyword::Junction instead, no cap.
The junction objects you get back are subclasses of List::Objects::WithUtils::Array β iconic behavior honestly π
And for the actual usage details? Slide over to List::Objects::WithUtils::Role::Array::WithJunctions. That's where the tea is β
π Motivation π
Not me explaining my villain origin story but okay π
The original goal was to get Sub::Exporter out of the List::Objects::WithUtils dependency tree β because that one came along for the ride with Syntax::Keyword::Junction, and we simply do not need that energy in here.
Perl6::Junction would have done that for me, fr fr. Unfortunately though, it comes with some unresolved RT bugs right now that are reasonably annoying β especially the warnings under perl-5.18.x. Like... no thank you. π
β AUTHOR β
This code is originally derived from Perl6::Junction by way of Syntax::Keyword::Junction; the original author is Carl Franks, based on the Perl6 design documentation π
Adapted to List::Objects::WithUtils by Jon Portnoy <avenj@cobaltirc.org> π«Ά
okay that's the whole page, ily, go write some junctions πβ¨ This lil beauty shipped with perl v5.38.2, dated 2024-03-07, and it lives in the User Contributed Perl Documentation as List::...unction(3pm) β slay ππ
π¦ 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