Yukihiro Matsumoto wrote:
> Hi,
> 
> In message "Re: [RCR] Numeric#of"
>     on 04/05/25, "Ara.T.Howard" <ahoward / noaa.gov> writes:
> 
> |> What if n is very large number?
> |
> |same problem with using #map vs. #map! isn't it?
> 
> Yes, but they are for Enumerables, collecting items for number of
> times can be abused more easily.  Just my concern.
> 
> |i'm not attached to 'of' - all i was suggesting was a collecting
> |Numeric#times.  i actually considered this first:
> 
> ...
> 
> |but this is even less intuitive, whereas the 'of' why kindof reads like 'give
> |me n of these'.  sorry i can't think of a better non-english-centric name ;-)
> 
> You don't have to care about being "non-english-centric", but I just
> worry that the word "of" can mean virtually anything.

I understand the idiom, but I agree that it is a little vague.

What if we allow Integer#* to take a block?

a,b,c,d,e = 5 * { Array.new }


Hal