I initialize an array this way:
array = Array.new array << \'1\' << \'2\' << \'3\'
Is it possible to do that in one s
Along with the above answers , you can do this too
=> [*'1'.."5"] #remember * => ["1", "2", "3", "4", "5"]