List::...unction(3pm)

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

πŸ’– 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