1 package Moose::Meta::Method::Accessor::Native::Array::delete;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => {
17 _inline_check_arguments
18 _inline_optimized_set_new_value
24 sub _minimum_arguments { 1 }
26 sub _maximum_arguments { 1 }
28 sub _inline_check_arguments {
31 return $self->_inline_check_var_is_valid_index('$_[0]');
34 sub _adds_members { 0 }
36 sub _potential_value {
37 my ( $self, $slot_access ) = @_;
40 "( do { my \@potential = \@{ $slot_access }; \@return = splice \@potential, \$_[0], 1; \\\@potential } )";
43 sub _inline_optimized_set_new_value {
44 my ( $self, $inv, $new, $slot_access ) = @_;
46 return "\@return = splice \@{ $slot_access }, \$_[0], 1";
50 my ( $self, $slot_access ) = @_;
52 return 'return $return[0];';