NAME

Data::Object::Func::Array::EachKey

ABSTRACT

Data-Object Array Function (EachKey) Class

SYNOPSIS

use Data::Object::Func::Array::EachKey;

my $func = Data::Object::Func::Array::EachKey->new(@args);

$func->execute;

DESCRIPTION

Data::Object::Func::Array::EachKey is a function object for Data::Object::Array.

METHODS

This package implements the following methods.

execute

execute() : Object

Executes the function logic and returns the result.

execute example
my $data = Data::Object::Array->new([1..4]);

my $sets = [];

my $func = Data::Object::Func::Array::EachKey->new(
  arg1 => $data,
  arg2 => sub { push @$sets, [@_] }
);

my $result = $func->execute;

mapping

mapping() : (Str)

Returns the ordered list of named function object arguments.

mapping example
my @data = $self->mapping;