Hi,

On 2/1/06, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote:

> i threw this out before.  thought i'd try again:
>
>    harp:~ > irb
>    irb(main):001:0> class Numeric; def of(&b) Array::new(self).map(&b) end; end
>    => nil
>
>    irb(main):002:0> 42.of{ String::new }
>    => ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]

Using my not-yet-committed 1.9, you can type

  42.times.collect{String::new}

to get the same result.

matz.