Feature #180 [ruby-reference-manual:958]
Array.new(size) {|index| ... } に例を追加する
| 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"]
---
Associated revisions
fixed #180