Project

General

Profile

Actions

Feature #6176

closed

Allow Enumerable#flatten to take a block

Added by trans (Thomas Sawyer) about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Target version:
-
[ruby-core:43474]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0