ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
ÿØÿà JFIF ÿÛ „
(
%!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ
ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ
ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ
? ¼QxJQaÍuò¸Zö
Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
????????????????????????????????????
????????????????????????????????????
ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
ÿØÿà JFIF ÿÛ „
(
%!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ
ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ
ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ
? ¼QxJQaÍuò¸Zö
Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
????????????????????????????????????
????????????????????????????????????
U:RDoc::AnyMethod[iI"slice!:ETI"Array#slice!;TF:publico:RDoc::Markup::Document:@parts[/o:RDoc::Markup::Paragraph; [I".Removes and returns elements from +self+.;To:RDoc::Markup::BlankLine o;
; [I"*With numeric argument +index+ given, ;TI"7removes and returns the element at offset +index+:;T@o:RDoc::Markup::Verbatim; [
I"a = ['a', 'b', 'c', 'd']
;TI"a.slice!(2) # => "c"
;TI"(a # => ["a", "b", "d"]
;TI"a.slice!(2.1) # => "d"
;TI"#a # => ["a", "b"]
;T:@format0o;
; [I"EIf +index+ is negative, counts backwards from the end of +self+:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"a.slice!(-2) # => "c"
;TI"'a # => ["a", "b", "d"]
;T;
0o;
; [I"/If +index+ is out of range, returns +nil+.;T@o;
; [I"8With numeric arguments +start+ and +length+ given, ;TI"Sremoves +length+ elements from +self+ beginning at zero-based offset +start+; ;TI"0returns the removed objects in a new array:;T@o;; [
I"a = ['a', 'b', 'c', 'd']
;TI"(a.slice!(1, 2) # => ["b", "c"]
;TI"(a # => ["a", "d"]
;TI"#a.slice!(0.1, 1.1) # => ["a"]
;TI"#a # => ["d"]
;T;
0o;
; [I"EIf +start+ is negative, counts backwards from the end of +self+:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI" a.slice!(-2, 1) # => ["c"]
;TI"*a # => ["a", "b", "d"]
;T;
0o;
; [I"/If +start+ is out-of-range, returns +nil+:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"a.slice!(5, 1) # => nil
;TI"a.slice!(-5, 1) # => nil
;T;
0o;
; [I"8If start + length exceeds the array size, ;TI"Eremoves and returns all elements from offset +start+ to the end:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"%a.slice!(2, 50) # => ["c", "d"]
;TI"%a # => ["a", "b"]
;T;
0o;
; [I"?If start == a.size and +length+ is non-negative, ;TI"returns a new empty array.;T@o;
; [I",If +length+ is negative, returns +nil+.;T@o;
; [I"(With Range argument +range+ given, ;TI"5treats range.min as +start+ (as above) ;TI"4and range.size as +length+ (as above):;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"$a.slice!(1..2) # => ["b", "c"]
;TI"$a # => ["a", "d"]
;T;
0o;
; [I"BIf range.start == a.size, returns a new empty array:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"a.slice!(4..5) # => []
;T;
0o;
; [I"JIf range.start is larger than the array size, returns +nil+:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"a.slice!(5..6) # => nil
;T;
0o;
; [I"*If range.start is negative, ;TI"Mcalculates the start index by counting backwards from the end of +self+:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI" a.slice!(-2..2) # => ["c"]
;T;
0o;
; [I"(If range.end is negative, ;TI"Kcalculates the end index by counting backwards from the end of +self+:;T@o;; [I"a = ['a', 'b', 'c', 'd']
;TI"*a.slice!(0..-2) # => ["a", "b", "c"]
;T;
0o;
; [I"NRelated: see {Methods for Deleting}[rdoc-ref:Array@Methods+for+Deleting].;T:
@fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"pslice!(index) -> object or nil
slice!(start, length) -> new_array or nil
slice!(range) -> new_array or nil
;T0[ I"(*args);T@|FI"
Array;TcRDoc::NormalClass00