Bug #3525: Enumerable#flat_map does not return a flatted enumerable
http://redmine.ruby-lang.org/issues/show/3525

Author: Jan Lelis
Status: Open, Priority: Normal
Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2010-07-02 revision 28524) [i686-linux]

Hi,

the new flat_map method does not return flatted enumerables:

irb(main):072:0> [[1,2],2,3].flat_map{|e|e}
=> [1, 2, 2, 3]
irb(main):071:0> [[1,2],2,3].flat_map.to_a
=> [[1, 2], 2, 3]


----------------------------------------
http://redmine.ruby-lang.org