D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Array
/
Filename :
drop-i.ri
back
Copy
U:RDoc::AnyMethod[iI" drop:ETI"Array#drop;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QReturns a new array containing all but the first +count+ element of +self+, ;TI".where +count+ is a non-negative integer; ;TI"does not modify +self+.;To:RDoc::Markup::BlankLine o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [ I"a = [0, 1, 2, 3, 4, 5] ;TI"'a.drop(0) # => [0, 1, 2, 3, 4, 5] ;TI"$a.drop(1) # => [1, 2, 3, 4, 5] ;TI"!a.drop(2) # => [2, 3, 4, 5] ;TI"a.drop(9) # => [] ;T:@format0o; ; [I"NRelated: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching].;T: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I"drop(count) -> new_array ;T0[ I" (p1);T@FI" Array;TcRDoc::NormalClass00