File: //usr/share/ri/3.0.0/system/Array/take-i.ri
U:RDoc::AnyMethod[iI" take:ETI"Array#take;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"FReturns a new \Array containing the first +n+ element of +self+, ;TI"+where +n+ is a non-negative \Integer; ;TI"does not modify +self+.;To:RDoc::Markup::BlankLine o;
; [I"Examples:;To:RDoc::Markup::Verbatim; [
I"a = [0, 1, 2, 3, 4, 5]
;TI"a.take(1) # => [0]
;TI"a.take(2) # => [0, 1]
;TI"(a.take(50) # => [0, 1, 2, 3, 4, 5]
;TI"a # => [0, 1, 2, 3, 4, 5];T:@format0:
@fileI"array.c;T:0@omit_headings_from_table_of_contents_below0I" array.take(n) -> new_array
;T0[ I" (p1);T@FI"
Array;TcRDoc::NormalClass00