D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Integer
/
Filename :
downto-i.ri
back
Copy
U:RDoc::AnyMethod[iI"downto:ETI"Integer#downto;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"PCalls the given block with each integer value from +self+ down to +limit+; ;TI"returns +self+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"a = [] ;TI"510.downto(5) {|i| a << i } # => 10 ;TI"Fa # => [10, 9, 8, 7, 6, 5] ;TI"a = [] ;TI"40.downto(-5) {|i| a << i } # => 0 ;TI"Ja # => [0, -1, -2, -3, -4, -5] ;TI"44.downto(5) {|i| fail 'Cannot happen' } # => 4 ;T:@format0o; ; [I"0With no block given, returns an Enumerator.;T: @fileI"numeric.c;T:0@omit_headings_from_table_of_contents_below0I"Ndownto(limit) {|i| ... } -> self downto(limit) -> enumerator ;T0[ I" (p1);T@FI"Integer;TcRDoc::NormalClass00