The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

List::Objects::WithUtils::Role::WithJunctions - Add junctions to Arrays

SYNOPSIS

  ## Via List::Objects::WithUtils::Array ->
  use List::Objects::WithUtils 'array';

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

  if ( $array->any_items eq 'b' ) {
    ...
  }

  if ( $array->all_items eq 'a' ) {
    ...
  }

  ## As a Role ->
  use Role::Tiny::With;
  with 'List::Objects::WithUtils::Role::Array',
       'List::Objects::WithUtils::Role::WithJunctions';

DESCRIPTION

Used by List::Objects::WithUtils::Array to provide access to Syntax::Keyword::Junction.

any_items

Returns the overloaded "any" in Syntax::Keyword::Junction object for the current array.

all_items

Returns the "all" in Syntax::Keyword::Junction object for the current array.

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>