Beginner question: create array with block?

m =

1.upto(40) {|x| m << [x.to_s + "'", x]}

cheers ivor

Taylor Strait wrote: