D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Enumerator
/
Lazy
/
Filename :
with_index-i.ri
back
Copy
U:RDoc::AnyMethod[iI"with_index:ETI" Enumerator::Lazy#with_index;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I">If a block is given, returns a lazy enumerator that will ;TI"3iterate over the given block for each element ;TI">with an index, which starts from +offset+, and returns a ;TI"Elazy enumerator that yields the same values (without the index).;To:RDoc::Markup::BlankLine o; ; [I"AIf a block is not given, returns a new lazy enumerator that ;TI"0includes the index, starting from +offset+.;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" +offset+;T; [o; ; [I"the starting index to use;T@o; ; [I"See Enumerator#with_index.;T: @fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"Ulazy.with_index(offset = 0) {|(*args), idx| block } lazy.with_index(offset = 0) ;T0[ I"(p1 = v1);T@"FI" Lazy;TcRDoc::NormalClass00