Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Array
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.7/usr/share/ri/2.7.0/system/Array/first-i.ri
U:RDoc::AnyMethod[iI" first:ETI"Array#first;TF:publico: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