D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Enumerable
/
Filename :
map-i.ri
back
Copy
U:RDoc::AnyMethod[iI"map:ETI"Enumerable#map;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Returns an array of objects returned by the block.;To:RDoc::Markup::BlankLine o; ; [I"CWith a block given, calls the block with successive elements; ;TI";returns an array of the objects returned by the block:;T@o:RDoc::Markup::Verbatim; [I"O(0..4).map {|i| i*i } # => [0, 1, 4, 9, 16] ;TI"H{foo: 0, bar: 1, baz: 2}.map {|key, value| value*2} # => [0, 2, 4] ;T:@format0o; ; [I"0With no block given, returns an Enumerator.;T: @fileI"enum.c;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"Enumerable;TcRDoc::NormalModule0[@FI"collect;T