1 package Moose::Meta::Method::Accessor::Native::Array::first;
9 $VERSION = eval $VERSION;
10 our $AUTHORITY = 'cpan:STEVAN';
12 use base 'Moose::Meta::Method::Accessor::Native::Array::Reader';
14 sub _inline_process_arguments {
15 return 'my $func = shift;';
18 sub _inline_check_arguments {
20 q{die 'Must provide a code reference as an argument' unless ( ref $func || q{} ) eq 'CODE';};
25 my $slot_access = shift;
27 return "&List::Util::first( \$func, \@{ ${slot_access} } )";