From: "mame (Yusuke Endoh)" Date: 2012-03-30T02:31:33+09:00 Subject: [ruby-core:43895] [ruby-trunk - Feature #6176][Assigned] Allow Enumerable#flatten to take a block Issue #6176 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to matz (Yukihiro Matsumoto) #flatten is recursive by default. #flat_map is not. So I don't think it is a good idea to extend #flatten. Anyway, #flat_map is already included in 1.9. We no longer need to extend #flatten, I think. -- Yusuke Endoh ---------------------------------------- Feature #6176: Allow Enumerable#flatten to take a block https://bugs.ruby-lang.org/issues/6176#change-25407 Author: trans (Thomas Sawyer) Status: Assigned Priority: Normal Assignee: matz (Yukihiro Matsumoto) 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/