Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Enumerable
/
//opt/alt/ruby27/share/ri/system/Enumerable/first-i.ri
U:RDoc::AnyMethod[iI" first:ETI"Enumerable#first;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"NReturns the first element, or the first +n+ elements, of the enumerable. ;TI"RIf the enumerable is empty, the first form returns <code>nil</code>, and the ;TI"(second form returns an empty array.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I")%w[foo bar baz].first #=> "foo" ;TI"2%w[foo bar baz].first(2) #=> ["foo", "bar"] ;TI"9%w[foo bar baz].first(10) #=> ["foo", "bar", "baz"] ;TI"'[].first #=> nil ;TI"%[].first(10) #=> [];T:@format0: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"Cenum.first -> obj or nil enum.first(n) -> an_array ;T0[ I"(*args);T@FI"Enumerable;TcRDoc::NormalModule00