Ara.T.Howardwrote:
[snip] 
> after you'd seen
> 
>   a, b, c = 3.of { MyClass.new }
> 
> or even
> 
>   first, second, third, fourth = 4.of {|which| MyClass.new which }
> 
> once, maybe thrice, in some sources - wouldn't it be clear enough?


Your 'of' is a mix between times and map. Wouldn't it be better to
name it 'times_map' ?

  a, b, c = 3.times_map {|n| -n}

  # a=0, b=-1, c=-2


-- 
Simon Strandgaard