Issue #6176 has been updated by drbrain (Eric Hodel).


I think #flat_map makes more sense than #flatten accepting a block.  It's unclear to me what #flatten would do with the block based on the name alone.

Also, there is no Enumerable#flatten
----------------------------------------
Feature #6176: Allow Enumerable#flatten to take a block
https://bugs.ruby-lang.org/issues/6176#change-24954

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/