Feature #180 [ruby-reference-manual:958]

Array.new(size) {|index| ... } に例を追加する

Added by Yutaka HARA 381 days ago. Updated 357 days ago.

Status :Closed Start :06/18/2008
Priority :Normal Due date :
Assigned to :- % Done :

100%

Category :doc
Target version :-
reporter :

matsue

ruby_version :


Description

イテレータ変数を使った例を追加した方が良い。
 ---
 Array.new(3){|index| "hoge#{index}"}
 => ["hoge0", "hoge1", "hoge2"]
 ---

Array.patch (438 Bytes) Anonymous, 07/12/2008 10:50 AM

Associated revisions

Revision 2915
Added by yhara 357 days ago

fixed #180

History

07/12/2008 10:50 AM - Anonymous

パッチです。

07/12/2008 11:27 AM - Yutaka HARA

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r2915.

Also available in: Atom PDF