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 {
38 my ($slot_access) = @_;
41 . 'my @potential = @{ (' . $slot_access . ') }; '
42 . '@return = splice @potential, $_[0], 1; '
47 sub _inline_optimized_set_new_value {
49 my ($inv, $new, $slot_access) = @_;
51 return '@return = splice @{ (' . $slot_access . ') }, $_[0], 1;';
56 my ($slot_access) = @_;