File: C:/Ruby27-x64/share/ri/2.7.0/system/Enumerable/first-i.ri
U:RDoc::AnyMethod[iI"
first:ETI"Enumerable#first;TF:publico: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