chen li wrote:
> Hi all,
>
> I want to create an array as following:
> a4=['name 1','name 2'...'name 20'].
>
> It looks like a range for me. But I can't find a
> method in class Range to create this array. Here is my
> script I am not sure if this the Ruby way to do this.
> Any inputs?

('1'..'20').map{|s| 'name ' + s}