General

Profile

dgc (Don Cruickshank)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/06/2015

02:41 PM Ruby Bug #10944 (Closed): Documentation of Array.new w.r.t. element index available to a block
In http://ruby-doc.org/core-2.2.1/Array.html#class-Array-label-Creating+Arrays
The documentation for the Array.new method is missing the fact that the element index is available to a given block.
E.g.
Array.new(4) { |x| x } #=...
dgc (Don Cruickshank)

Also available in: Atom