Project

General

Profile

Actions

Feature #5185

closed

Set#merge acts in place but Hash#merge does not

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

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

Description

Waste of brain cells to have to learn and recall they are different. The expected method would be Set#merge!, Set#merge would return a new Set instance.

OTOH, why not Set#concat ? Or conversely, Array#merge ?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0