1 package Moose::Meta::Method::Accessor::Native::Array::map;
10 with 'Moose::Meta::Method::Accessor::Native::Reader';
12 sub _minimum_arguments { 1 }
14 sub _maximum_arguments { 1 }
16 sub _inline_check_arguments {
20 'if (!Params::Util::_CODELIKE($_[0])) {',
21 $self->_inline_throw_error(
22 '"The argument passed to map must be a code reference"',
30 my ($slot_access) = @_;
32 return 'map { $_[0]->() } @{ (' . $slot_access . ') }';