📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 08:14:00
📂
/ (Root)
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Array
📍 /opt/alt/ruby27/share/ri/system/Array
🔄 Refresh
✏️
Editing: first-i.ri
Read Only
U:RDoc::AnyMethod[iI" first:ETI"Array#first;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"IReturns the first element, or the first +n+ elements, of the array. ;TI"BIf the array is empty, the first form returns +nil+, and the ;TI"Asecond form returns an empty array. See also Array#last for ;TI"the opposite effect.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I" a = [ "q", "r", "s", "t" ] ;TI"a.first #=> "q" ;TI"a.first(2) #=> ["q", "r"];T:@format0: @fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I">ary.first -> obj or nil ary.first(n) -> new_ary ;T0[ I"(*args);T@FI" Array;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel