U:RDoc::AnyMethod[iI" slice!:ETI"Array#slice!;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"KDeletes the element(s) given by an +index+ (optionally up to +length+ ;TI"elements) or by a +range+.;To:RDoc::Markup::BlankLineo; ; [I"PReturns the deleted object (or objects), or +nil+ if the +index+ is out of ;TI" range.;T@o:RDoc::Markup::Verbatim; [ I"a = [ "a", "b", "c" ] ;TI"a.slice!(1) #=> "b" ;TI"$a #=> ["a", "c"] ;TI"a.slice!(-1) #=> "c" ;TI"a #=> ["a"] ;TI"a.slice!(100) #=> nil ;TI"a #=> ["a"];T: @format0: @fileI" array.c;T:0@omit_headings_from_table_of_contents_below0I"€ary.slice!(index) -> obj or nil ary.slice!(start, length) -> new_ary or nil ary.slice!(range) -> new_ary or nil ;T0[I"(p1, p2 = v2);T@FI" Array;TcRDoc::NormalClass00