Actions
Bug #3525
closedEnumerable#flat_map does not return a flatted enumerable
Description
=begin
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]
=end
Actions
Like0
Like0