title: Append the results of a Ruby .map into an array?
body: <p>I'm trying to build a items array. I'm looping through a CSV file and when i find matches expanding the list of items. See code below:</p>
  
  <pre><code>items = Array.new
  csv.each_with_index do |row,i|
     items &lt;&lt; ["a","b","c"].map {|x| row.to_s.gsub(/XXXXXXXXXX/, x.downcase)}
  end
  puts items.length
  </code></pre>
  
  <p>This is not returning to desired items array. Am I appended the results of map incorrectly to the array?</p>