Project

General

Profile

Actions

Bug #3525

closed

Enumerable#flat_map does not return a flatted enumerable

Added by rbjl (Jan Lelis) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2010-07-02 revision 28524) [i686-linux]
Backport:
[ruby-core:31001]

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

Also available in: Atom PDF

Like0
Like0