Issue #6176 has been reported by trans (Thomas Sawyer).

----------------------------------------
Feature #6176: Allow Enumerable#flatten to take a block
https://bugs.ruby-lang.org/issues/6176

Author: trans (Thomas Sawyer)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


I see a new method `#flat_map` has been added to Enumerable. Yet passing a block to #flatten has no use. That seems a waste, as it adds yet another method to remember when one we already know can do the job and makes sense.




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