Jon Portnoy > List-Objects-WithUtils-1.012001 > List::Objects::WithUtils::Array::Junction

Download:
List-Objects-WithUtils-1.012001.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.012001   Source   Latest Release: List-Objects-WithUtils-2.015001

NAME ^

List::Objects::WithUtils::Array::Junction - Lightweight junction classes

SYNOPSIS ^

  # See List::Objects::WithUtils::Role::WithJunctions

DESCRIPTION ^

These are light-weight junction objects covering most of the functionality provided by Syntax::Keyword::Junction. They provide the all_items and any_items methods defined by List::Objects::WithUtils::Role::WithJunctions.

Only the junction types used by List::Objects::WithUtils ('any' and 'all') are implemented; nothing is exported. The ~~ smart-match operator is not supported. See Syntax::Keyword::Junction if you were looking for a stand-alone implementation with more features.

The junction objects produced are subclasses of List::Objects::WithUtils::Array.

See List::Objects::WithUtils::Role::WithJunctions for usage details.

Motivation

My original goal was to get Sub::Exporter out of the List::Objects::WithUtils dependency tree; that one came along with Syntax::Keyword::Junction.

Perl6::Junction would have done that for me. Unfortunately, that comes with some unresolved RT bugs right now that are reasonably annoying (especially warnings under perl-5.18.x).

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>

syntax highlighting: