delete_at(p1)
public
Deletes the element at the specified index,
returning that element, or nil if the index
is out of range. See also Array#slice!.
a = %w( ant bat cat dog )
a.delete_at(2)
a
a.delete_at(99)
Show source
static VALUE
rb_ary_delete_at_m(VALUE ary, VALUE pos)
{
return rb_ary_delete_at(ary, NUM2LONG(pos));
}