Project

General

Profile

Actions

Feature #5185

closed

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

Added by trans (Thomas Sawyer) over 13 years ago. Updated about 12 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