From: ErMaker Date: 2009-09-14T11:19:31+09:00 Subject: [1,2,3].map.with_object(3){|v|v+3} #=> 3 Is this a bug? --0023545bda286d62330473804b1d Content-Type: text/plain; charset=ISO-8859-1 At ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-mswin32_90] Ruby runs like this. >> [1,2,3].map.with_object(3){|v|v+3} => 3 >> [1,2,3].each.with_object(3).map{|v|v+3} => [4, 5, 6] I think that is better to use. >> [1,2,3].map.with_object(3){|v|v+3} => [4, 5, 6] Is it a bug? --0023545bda286d62330473804b1d--